This commit is contained in:
qy117121 2023-02-16 19:52:41 +08:00
parent 554f241eb4
commit f2a60f1732
25 changed files with 403 additions and 140 deletions

View file

@ -22,6 +22,7 @@ server {
error_log /var/log/%web_system%/domains/%domain%.error.log error;
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%;
@ -34,6 +35,29 @@ 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/
{
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-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
@ -54,6 +78,7 @@ location /portainer/ {
proxy_pass https://portainer/api/websocket/;
}
location /error/ {
alias %home%/%user%/web/%domain%/document_errors/;
}
@ -67,7 +92,7 @@ location /portainer/ {
return 404;
}
proxy_hide_header Upgrade;
# proxy_hide_header Upgrade;
include %home%/%user%/conf/web/%domain%/nginx.ssl.conf_*;
}