@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.