Hello,
I recently install nodebb and I setup the config.json and my nginx server so I can access the forums from https://website.com/. In my config.json I added the socket.io property so I can access my forums via https://website.com/ and https://www.website.com/. However, every time I try to access my forums from https://www.website.com it keeps showing the default message to the nginx server setup. Can anyone tell me what I can do to fix this.
Here is my config.json file:
{
"url": "https://website.com/",
"secret": "Number",
"database": "mongo",
"mongo": {
"host": "127.0.0.1",
"port": "port",
"username": "user",
"password": "password",
"database": "database",
"uri": ""
},
"socket.io": {
"origins": "https://www.website.com: * https://website.com:*"
}
}
I tried switching the two around in socket.io but nothing worked. Also I have a space between "https://www.website.com:" and "*" because the forum is thinking I am trying to place an emoji in.
Here is my Nginx Server Config:
server {
listen 80;
server_name website.com;
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";
}
}
Thanks,
Brian