I followed the instructions
Setup Nginx > working perfectly Security certificate > working perfectly Setup vsftpd & secured > working perfectly
Installed Node-red > working fine on http and port 1880 Not working on node-red.domainname.com but on domainname:1880 Setup Credentials Admin & password > working As soon as I block port 1880 or allow line "uiHost: “127.0.0.1”, I cant access the node-red server. Regular website still works fine and is getting https.
So I have two issues:
Please help guide me though this. I have been stuck at it for a few days now
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!
Hi @thorofasgard,
You need to configure Reverse Proxy in your nginx conf for your domain. Basically, go to /etc/nginx/sites-enabled/yourdomainname.conf. Once inside, you 'll need to configure.
For port 80 it will look something like:
server {
listen 80;
server_name your_domain www.your_domain;
location / {
proxy_pass http://127.0.0.1:1880;
proxy_set_header Host $host;
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;
}
Hello @thorofasgard
You need to create an Nginx virtual host for the domain name in order to use it instead of the droplet IP address.
We do have an old tutorial for an older Ubuntu version which you can check here:
You can check Step 4 — Setting Up Nginx and examine the configuration.
Regards
I did install it follow the instructions from 16-04 but it didnt work after I closed the port and and yes I did have the config file as below.
They only way it works for me if I leave the //uiHost: “127.0.0.1”, commented out and port 1880 open.
Cant get it to run on https either
Am I allowed to post the links here?
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.