Skip to content

Instantly share code, notes, and snippets.

@RyanWor
Forked from marcelo-ochoa/portainer.conf
Last active December 1, 2021 23:04
Show Gist options
  • Save RyanWor/85994188481b29816b450cf38d7a993d to your computer and use it in GitHub Desktop.
Save RyanWor/85994188481b29816b450cf38d7a993d to your computer and use it in GitHub Desktop.
Portainer.IO site frontend definition
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