Valid link to forum logo in email messages
-
Hi!
I'm using NodeBB 1.17.1 running behind nginx reverse proxy.
All is good enough except one thing: sometimes link to forum logo for example in account confirmation message is malformed and starts with
http://localhost:4567/assets/...
Instead of
https://mydomain.tld/assets...
How to fix the issue?
-
The url value in config.json should be set to exactly the url at which you access your site.
-
@twissell Since I had your problem at the beginning of starting my forum. you should both edit your
config.json
file and/etc/nginx/sites-available/your_doman.conf
file.Here is my
config.json
file:{ "url": "http://pythonforum.ir", "secret": "SECRET", "database": "mongo", "port": "4567", "mongo": { "host": "IP", "port": "PORT", "username": "user", "password": "password", "database": "db", "uri": "" }
and here is my
/etc/nginx/sites-available/your_doman.conf
file:server { listen 80; server_name pythonforum.ir www.pythonforum.ir; root /path_to_nodebb; location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header Host $http_host; proxy_set_header X-NginX-Proxy true; proxy_pass http://127.0.0.1:4567; proxy_redirect off; # Socket.IO Support proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } }
Of course my website is running in SSL, but it should work for your without SSL too.
-
@inna here we've
-
Can you please try restarting again and using a test email to try it out? If you have the correct value in config.json that should be all you need.
-
@inna said in Valid link to forum logo in email messages:
@twissell As @PitaJ said, please restart nodebb.
Also checkhttp://your_domain.com/admin/settings/general#site-logo
if you have entered any valueYou are right. I'd to set up once again the logo URL and the issue has been fixed.