Problems with NGINX config.
-
also, i haven't been able to get any of the forever/supervisor installs to work. if the server reboots, nodebb still needs manual restart.
i really like the way nodebb works and i want to use it for this project, but i fear the install process is still outside my skill level.
-
@planner thanks for the quick reply...
sites-available/www.talk.cloudmounta.in:
server {
listen 80;server_name talk.cloudmounta.in; location / { 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_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"; }
}
the error log located where you asked is empty.
and i believe i had made a symlink in sites-enabled in the nginx dir. -
No need for posting the contents of nginx.conf. You may edit the post and delete that part and enclose the entire contents of sites-available.talk.. inside the code block.
I think the problem it's not working properly is that the
proxy_pass
value does not match thebase_url
value in config.json. Setproxy_pass http://talk.cloudmounta.in:4567;
and see if that works. Don't forget to restart Nginx and NodeBB before testing. -
@ planner @julian thanks for all the help guys.
this is where i have gotten - www.talk.cloudmounta.in:4567i updated the sites-available/www.talk.cloudmounta.in to have the proxy pass http://talk.cloudmounta.in:4567; - but www.talk.cloudmounta.in still just shows the nginx start page.
now, for some reason, after i installed the Facebook sso plugin, i can not login normally, the login page only shows the alternate login (fb).
i got the nginx service to restart, just fine thank you @julian
-
i didn't remember doing it, but i have got them back (by reverting to a snapshot of my droplet).
so, at this stage, still don't have the nginx proxy/redirect working, and when users are logged in, the top bar doesn't have the conditional menu as shown on this forum, it just displays "register login" as though no user were logged in. but when in the admin section, my user avatar shows up there.
-
@planner - as far as i am aware, no. this is my first time doing this kind of thing though. i used the NODEBB for dummies install guide.
haha its making me feel stupid.
i am so thankful for all the help so far, this is by far one of the most active and helpful communities i have encountered.
how would i find out if i am running a cache server? would it be easier i if created a login for one of you? i don't want to keep taking up your time if i keep breaking things, but i am dead certain that of all the forum software i have seen, i want to use NodeBB for sure.