This commit is contained in:
root 2023-01-27 23:33:35 +08:00
parent 6103ac2f8a
commit bde355072f

View file

@ -4,7 +4,7 @@
# https://docs.hestiacp.com/admin_docs/web.html#how-do-web-templates-work # # https://docs.hestiacp.com/admin_docs/web.html#how-do-web-templates-work #
#=========================================================================# #=========================================================================#
upstream portainer { upstream portainer {
server 127.0.1.1:9090; server 127.0.0.1:9090;
} }
map $http_upgrade $connection_upgrade { map $http_upgrade $connection_upgrade {
default upgrade; default upgrade;
@ -23,7 +23,7 @@ server {
include %home%/%user%/conf/web/%domain%/nginx.hsts.conf*; include %home%/%user%/conf/web/%domain%/nginx.hsts.conf*;
location / { location / {
proxy_pass http://127.0.1.1:8989; proxy_pass https://%ip%:%web_ssl_port%;
location ~* ^.+\.(%proxy_extensions%)$ { location ~* ^.+\.(%proxy_extensions%)$ {
root %sdocroot%; root %sdocroot%;
access_log /var/log/%web_system%/domains/%domain%.log combined; access_log /var/log/%web_system%/domains/%domain%.log combined;
@ -58,7 +58,7 @@ server {
} }
location @fallback { location @fallback {
proxy_pass http://127.0.1.1:8989; proxy_pass https://%ip%:%web_ssl_port%;
} }
location ~ /\.(?!well-known\/|file) { location ~ /\.(?!well-known\/|file) {