Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

bh4-tech@community.nodebb.orgB

[email protected]

@[email protected]
About
Posts
24
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

View Original

Posts

Recent Best Controversial

  • Re: Unable to log in after turning off cloudflare proxy
    bh4-tech@community.nodebb.orgB [email protected]

    @baris Yeah noticed it now. Actually, I also setup the nginx configuration following nodebb docs, specially the one for utilising multiple(2) cores for nodebb, but somehow missed the line related to protocol. Thanks a lot again.

    Tech

  • Re: Unable to log in after turning off cloudflare proxy
    bh4-tech@community.nodebb.orgB [email protected]

    @baris You are a wizard!!! That really solved the issue.

    Tech

  • Re: Unable to log in after turning off cloudflare proxy
    bh4-tech@community.nodebb.orgB [email protected]

    @baris Point 1 is checked. I think the problem is with nginx(point 2). Sharing my nginx conf file because I could not figure out the problem.

    upstream io_nodes {
        ip_hash;
        server 127.0.0.1:4567;
        server 127.0.0.1:4568;
    }
    
    server {
    
        server_name ekk.app;
    
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $http_host;
        proxy_set_header X-NginX-Proxy true;
        proxy_redirect off;
    
        # Socket.io Support
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    
        gzip            on;
        gzip_min_length 1000;
        gzip_proxied    off;
        gzip_types      text/plain application/xml text/javascript application/javascript application/x-javascript text/css application/json;
    
        location [@nodebb](https://community.nodebb.org/user/nodebb) {
            proxy_pass http://io_nodes;
        }
    
        location ~ ^/assets/(.*) {
            root /home/debian/nodebb/;
            try_files /build/public/$1 /public/$1 [@nodebb](https://community.nodebb.org/user/nodebb);
        }
    
        location / {
            proxy_pass http://io_nodes;
        }
    
        listen 443 ssl; # managed by Certbot
        ssl_certificate /etc/letsencrypt/live/ekk.app/fullchain.pem; # managed by Certbot
        ssl_certificate_key /etc/letsencrypt/live/ekk.app/privkey.pem; # managed by Certbot
        include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
        ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
    
    }
    
    
    server {
        if ($host = ekk.app) {
            return 301 https://$host$request_uri;
        } # managed by Certbot
    
    
        listen 80;
    
        server_name ekk.app;
        return 404; # managed by Certbot
    
    
    }
    
    
    Tech

  • Re: Unable to log in after turning off cloudflare proxy
    bh4-tech@community.nodebb.orgB [email protected]

    @julian Same problem in incognito also.

    Tech

  • Re: Unable to log in after turning off cloudflare proxy
    bh4-tech@community.nodebb.orgB [email protected]

    @baris Not related to this, but I am also facing a problem due to csrf token. I earlier used cloudflare SSL on my nodebb instance but now have turned it off because it was giving issues with loading media for federated accounts. My account was auto logged off and now I cannot login. Everytime I try to login, I get the error "Login Unsuccessful
    We were unable to log you in, likely due to an expired session. Please try again" and the url bar shows

    /login?error=csrf-invalid
    

    This happens both for admin as well as non-admin user. I have turned on-off-on as well as restarted both nodebb and nginx but the problem remains. Any suggested solution?

    Tech

  • Categories following Federated Accounts?
    bh4-tech@community.nodebb.orgB [email protected]

    @julian Yeah that worked for mastodon, but not for threads. Guess that's some problem on thread's side and not nodebb.

    However, the remote media preview problem still remains https://community.nodebb.org/post/103782 . Guess you will need to cache remote media like misskey.

    Fediverse

  • Categories following Federated Accounts?
    bh4-tech@community.nodebb.orgB [email protected]

    @julian https://www.threads.net/@khabydistas on threads and https://mastodon.social/@dansup on mastodon

    Fediverse

  • Categories following Federated Accounts?
    bh4-tech@community.nodebb.orgB [email protected]

    @julian Are categories supposed to follow regular users from this ufollow.jpg screen in admin panel. Asking this because I tried putting a mastodon user profile link in the textbox but upon clicking on 'Follow' nothing happened. For threads, the request is pending(with some error, I guess) as you can see from the picture.

    Fediverse

  • @julian Consider adding .mention class to mentions in HTML content.
    bh4-tech@community.nodebb.orgB [email protected]

    @julian Restarting also did not change anything.
    Also, noticed that if a post on mastodon, lemmy or threads has an image, it is shown beside the topic headline as a thumbnail but is not rendered below the actual text as an image. I guess that once this problem is fixed, videos(or video links) will also get rendered. The same behavior is observed on both community.nodebb.org as well as my nodebb instance. Attaching screenshots of both-
    1)community.nodebb.org with a lemmy post nimn.png

    2)nodebb instance with a mastodon postnime.png

    Fediverse

  • @julian Consider adding .mention class to mentions in HTML content.
    bh4-tech@community.nodebb.orgB [email protected]

    Same thing, no video on restart.

    Fediverse

  • @julian Consider adding .mention class to mentions in HTML content.
    bh4-tech@community.nodebb.orgB [email protected]

    Restart from admin panel or stop and start from cmd on server.

    Fediverse

  • @julian Consider adding .mention class to mentions in HTML content.
    bh4-tech@community.nodebb.orgB [email protected]

    @julian Is Video support limited to just Peertube videos? Asking this because, a video post on threads renders properly on mastodon and calckey(misskey fork) but only the text is displayed and not the video on my nodeb instance running 4.1.0. The post is https://www.threads.net/@b4htech/post/DGmUEn7y76q?xmt=AQGz1bBLfaQf_DsxBxScCQa7LxwcwQD3CSh5bf7j8nU0fA

    Below attached are the screenshots of the above post on-
    1)mastodon.png mastodon

    2)calckey.png calckey

    3)mynodebb.png My nodebb instance https://ekk.app

    Fediverse

  • nodebb-plugin-sso-google Remove the dash in username
    bh4-tech@community.nodebb.orgB [email protected]

    @bh4-tech My editing was correct but there was some problem with git on my server. I have fixed the things and now google registered users are having underscore in username instead of dash and can also be followed and mentioned from threads.
    @julian The problem is solved and thanks a lot for the support.

    Tech

  • nodebb-plugin-sso-google Remove the dash in username
    bh4-tech@community.nodebb.orgB [email protected]

    @julian src/slugify.js requires public/src/modules/slugify, so I changes the slugify function in that file to

    return function slugify(str, preserveCase) {
    		if (!str) {
    			return '';
    		}
    		str = String(str).replace(trimRegex, '');
    		if (isLatin.test(str)) {
    			str = str.replace(invalidLatinChars, '_');
    		} else {
    			str = XRegExp.replace(str, invalidUnicodeChars, '_');
    		}
    		str = !preserveCase ? str.toLocaleLowerCase() : str;
    		str = str.replace(collapseWhitespace, '_');
    		str = str.replace(collapseDash, '_');
    		str = str.replace(trimTrailingDash, '');
    		str = str.replace(trimLeadingDash, '');
    		return str;
    	};
    

    , basically replaced the dashes with underscore. I then stopped my current instance, upgraded it and then started it. However, now I registered a user using the google-sso plugin and again it has a dash in username instead of underscore. I guess we need to log the username somewhere in the plugin/core nodebb to find the problem. Which would be the best place for doing so?

    Tech

  • nodebb-plugin-sso-google Remove the dash in username
    bh4-tech@community.nodebb.orgB [email protected]

    @julian Thanks, will try and let you know.

    Tech

  • nodebb-plugin-sso-google Remove the dash in username
    bh4-tech@community.nodebb.orgB [email protected]

    @julian community.nodebb.org is blocked by threads but my nodebb instance isn't . For my nodebb server also, usernames with dash cannot be mentioned while others can be(screenshot attached).
    1000071809.png

    Also, a dash in username doesn't look nice and we do not have much control over remote servers(like threads). So, please suggest me a way in which new users can be created with google-sso plugin without a dash.

    Tech

  • nodebb-plugin-sso-google Remove the dash in username
    bh4-tech@community.nodebb.orgB [email protected]

    @julian I guess it's not linked since you don't have account on threads. The screenshot is attached.1000071808.png

    Tech

  • nodebb-plugin-sso-google Remove the dash in username
    bh4-tech@community.nodebb.orgB [email protected]

    @julian The mastodon and pixelfed profile mentions work fine. I am attaching the screenshot of what opens when I click on the pixelfed profile link. 1000071804.png

    Tech

  • nodebb-plugin-sso-google Remove the dash in username
    bh4-tech@community.nodebb.orgB [email protected]

    @julian Have attached the link to the specific post here.

    Tech

  • nodebb-plugin-sso-google Remove the dash in username
    bh4-tech@community.nodebb.orgB [email protected]

    https://www.threads.net/@b4htech/post/DFQBNPYSYQh?xmt=AQGzZB1Tm7TerclAApJ4rF8YlOPsIsNXMlfniGbUGCisFQ

    Tech
  • Login

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups