Update site.conf

Add 2 blocks to enable portainer (container monitoring)
This commit is contained in:
Brad 2017-02-18 06:33:34 -08:00 committed by GitHub
parent 27becf6917
commit bb9b984ee8
1 changed files with 19 additions and 0 deletions

View File

@ -132,5 +132,24 @@ server {
proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504; proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504;
#alias /usr/lib/GNUstep/SOGo/$1.SOGo/Resources/$2; #alias /usr/lib/GNUstep/SOGo/$1.SOGo/Resources/$2;
} }
location /portainer/ {
proxy_http_version 1.1;
proxy_set_header Host $http_host; # required for docker client's sake
proxy_set_header X-Real-IP $remote_addr; # pass on real client's IP
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 900;
proxy_set_header Connection "";
proxy_buffers 32 4k;
proxy_pass http://portainer/; }
location /portainer/api/websocket/ {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_pass http://portainer/api/websocket/;
}
} }