This commit is contained in:
qy117121 2023-02-23 22:34:37 +08:00
parent f4de366c61
commit adcd5e8035
3 changed files with 38 additions and 66 deletions

View file

@ -35,29 +35,17 @@ server {
}
}
location /sky {
proxy_redirect off;
proxy_pass http://127.0.0.1:23876;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /a552d878db04/
{
location /a552d878db04/ {
proxy_redirect off;
proxy_pass http://127.0.0.1:30875;
proxy_http_version 1.1;
proxy_set_header X-Real-IP \$remote_addr;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
}
location /portainer/ {
proxy_http_version 1.1;
proxy_set_header Host $http_host; # required for docker client's sake
@ -78,7 +66,6 @@ location /portainer/ {
proxy_pass https://portainer/api/websocket/;
}
location /error/ {
alias %home%/%user%/web/%domain%/document_errors/;
}

View file

@ -15,7 +15,6 @@ server {
include %home%/%user%/conf/web/%domain%/nginx.hsts.conf*;
add_header Strict-Transport-Security "max-age=63072000" always;
location / {
proxy_pass https://%ip%:%web_ssl_port%;
location ~* ^.+\.(%proxy_extensions%)$ {
@ -27,31 +26,17 @@ server {
}
}
location /sky {
proxy_redirect off;
proxy_pass http://127.0.0.1:23876;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /a552d878db04/
{
location /a552d878db04/ {
proxy_redirect off;
proxy_pass http://127.0.0.1:30875;
proxy_http_version 1.1;
proxy_set_header X-Real-IP \$remote_addr;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
}
location /error/ {
alias %home%/%user%/web/%domain%/document_errors/;
}