Update initproxy.conf

This commit is contained in:
qiaofeng1227 2023-04-26 09:00:34 +08:00 committed by GitHub
parent 02e4bfc17d
commit d078996b2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,6 +30,18 @@ server {
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
}
location /portainer/ {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Scheme $scheme;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://172.17.0.1:9091/;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
}
location / {
proxy_set_header Upgrade $http_upgrade;