-
-
Save RyanWor/85994188481b29816b450cf38d7a993d to your computer and use it in GitHub Desktop.
Portainer.IO site frontend definition
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
upstream portainer { | |
server 10.0.0.15:9000; | |
server 10.0.0.150:9000; | |
} | |
server { | |
listen 80; | |
server_name portainer.ryann.dev; | |
location / { | |
proxy_http_version 1.1; | |
proxy_set_header Connection ""; | |
proxy_pass http://portainer/; | |
} | |
location /api/websocket/ { | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; | |
proxy_http_version 1.1; | |
proxy_pass http://portainer/api/websocket/; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment