Skip to content

Instantly share code, notes, and snippets.

@boneskull
Created January 26, 2016 00:43
Show Gist options
  • Save boneskull/d418b7c871d2248cfeba to your computer and use it in GitHub Desktop.
Save boneskull/d418b7c871d2248cfeba to your computer and use it in GitHub Desktop.
example nginx config to reverse proxy a node-red server (websocket support)
server {
listen 80;
server_name your_server_name;
access_log /var/log/nginx/access.log;
location / {
proxy_pass http://localhost:1880;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
@felangga
Copy link

@marciomcj I change to localhost:1880/ui but it show me an error not found /uiui

@rtu-dataframe
Copy link

Thanks, works flawlessly!

@afeifly
Copy link

afeifly commented Nov 22, 2019

That's great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment