Hey guys! I'm having a couple issues and I'm sure it's something rather simple. I'm not usually one to ask for help unless I'm just completely lost, so here I am!
I'm having an issue setting up a proxy on my nginx server. All I'm looking to do is load NodeBB from 127.0.0.1:4567
for my domain. It's working fine with the trailing port (forgeunity.com:4567), but obviously I want it to load on port 80.
Forgeunity.com will load the default nginx page (until I deleted the default configuration, oops!), but I can't seem to get it to load my NodeBB installation. My current attempt is pretty much just from the NodeBB nginx guide, but here's everything I have:
Here's my nginx configuration, forgeunity
:
server {
listen 80;
server_name forgeunity.com;
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;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
My NodeBB config.json
{
"url": "http://forgeunity.com",
"secret": "SECRET",
"database": "redis",
"redis": {
"host": "127.0.0.1",
"port": "6379",
"password": "",
"database": "0"
}
}
For further information about my server, here's what I did:
- Spun up a Ubuntu 14.04 Node image (which is just preinstalled Node v4.2.1)
- Used NVM to install Node v0.10.40
- Installed and configured NodeBB to work directly on my server via its port
- Setup my domain name on my domain registrar side as well as DigitalOcean's side
- Installed nginx and "configured" it to not work properly, obviously
- Came here for assistance after hours of failure
Thanks in advance, everyone!