I created a new Ubuntu droplet with the Node.js one click install.
Followed this guide to have nodebb installed on the server https://nodebb.readthedocs.io/en/latest/installing/os/ubuntu.html
I created an A record to point the server to my subdomain community.intelisight.com and added same on cloudflare.
But when I try to access the installation (which was successful and the service shows as running) with this http://community.intelisight.com:4567 I get nothing. When I say http://community.intelisight.com same thing, I’m simply unable to access the live site.
My questions are
a) What am I doing wrong? What do I need to do to see the nodebb installation? b) Is there a guide showing how to use nginx as the proxy server so I don’t have to put in the port to access the website? c) How can I setup a free Let’s Encrypt SSL on this installation?
Thank you
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
@ososoba
When it comes to NodeJS apps and NGINX, the only way to access your URL with attaching the port to the end would be to use NGINX as a Proxy, in which case you would proxy requests on 80/443 to the port of your choice (i.e. your NodeJS app).
For example, this server block will take requests on port 80 and redirect them to port 443, and proxy requests on 443 to port 4567 (i.e your app). This would all be in a single file (i.e. yourdomain.conf).
NGINX as a Proxy
You’d need to change
yourdomain.com
to your actual domain, of course, though the above will set you up so that you’re not forced to use the port in the URL.You’ll need to reload NGINX once you’re done making changes using:
or
LetsEncrypt
https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04
@ososoba
As a side note, if NodeBB isn’t running on the port itself, try running:
If it’s showing a failure, you’ll want to check your permissions. You’ll need to run:
and
It’s easy to overlook those two commands, but without them, NodeBB won’t run if you are using the service file they provide in the guide.
That being said, if it’s still not running after setting proper permissions, it’s most likely due to the URL provided during setup. If you set it to the default
localhost
, then you need to use NGINX to proxy the request. Otherwise you’d need to set a valid public IP or domain.@ososoba
If you would, please post your exact configuration for your server block in a code block as a reply and I’ll be more than happy to take a look at it for you :-).