update
This commit is contained in:
parent
554f241eb4
commit
f2a60f1732
25 changed files with 403 additions and 140 deletions
|
|
@ -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_*;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue