Created
January 26, 2016 00:43
-
-
Save boneskull/d418b7c871d2248cfeba to your computer and use it in GitHub Desktop.
example nginx config to reverse proxy a node-red server (websocket support)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | |
} | |
} |
@boneskull ui=dashboard. When I go to the browser I would like to see just dashboard's tabs...
@marciomcj Don't know, but you should be able to reverse proxy a particular subpath. you could try changing proxy_pass http://localhost:1880;
to proxy_pass http://localhost:1880/path/to/ui
;
@boneskull I have tried that. Now it's working how I expected! Thank you again!
@marciomcj I change to localhost:1880/ui but it show me an error not found /uiui
Thanks, works flawlessly!
That's great!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@barisduzenli no idea. might be a http/https disagreement
@marciomcj which UI do you mean?