This commit is contained in:
root 2023-01-27 23:36:26 +08:00
parent bde355072f
commit 3378813d96
11 changed files with 20 additions and 20 deletions

View file

@ -5,7 +5,7 @@
#=========================================================================# #=========================================================================#
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 {

View file

@ -17,7 +17,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:5212; proxy_pass http://127.0.0.1:5212;
location ~* ^.+\.(%proxy_extentions%)$ { location ~* ^.+\.(%proxy_extentions%)$ {
# root %sdocroot%; # root %sdocroot%;
access_log /var/log/%web_system%/domains/%domain%.log combined; access_log /var/log/%web_system%/domains/%domain%.log combined;
@ -32,7 +32,7 @@ server {
} }
location @fallback { location @fallback {
proxy_pass http://127.0.1.1:5212; proxy_pass http://127.0.0.1:5212;
} }
location ~ /\.ht {return 404;} location ~ /\.ht {return 404;}

View file

@ -16,7 +16,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 http://127.0.0.1:8989;
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;
@ -36,7 +36,7 @@ server {
proxy_set_header Connection ""; proxy_set_header Connection "";
proxy_buffers 32 4k; proxy_buffers 32 4k;
proxy_pass http://127.0.1.1:8988/; proxy_pass http://127.0.0.1:8988/;
} }
location /error/ { location /error/ {
@ -44,7 +44,7 @@ server {
} }
location @fallback { location @fallback {
proxy_pass http://127.0.1.1:8989; proxy_pass http://127.0.0.1:8989;
} }
location ~ /\.(?!well-known\/|file) { location ~ /\.(?!well-known\/|file) {

View file

@ -17,7 +17,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:8030; proxy_pass http://127.0.0.1:8030;
location ~* ^.+\.(%proxy_extentions%)$ { location ~* ^.+\.(%proxy_extentions%)$ {
# root %sdocroot%; # root %sdocroot%;
access_log /var/log/%web_system%/domains/%domain%.log combined; access_log /var/log/%web_system%/domains/%domain%.log combined;
@ -32,7 +32,7 @@ server {
} }
location @fallback { location @fallback {
proxy_pass http://127.0.1.1:8030; proxy_pass http://127.0.0.1:8030;
} }
location ~ /\.ht {return 404;} location ~ /\.ht {return 404;}

View file

@ -17,7 +17,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:5320; proxy_pass http://127.0.0.1:5320;
location ~* ^.+\.(%proxy_extentions%)$ { location ~* ^.+\.(%proxy_extentions%)$ {
# root %sdocroot%; # root %sdocroot%;
access_log /var/log/%web_system%/domains/%domain%.log combined; access_log /var/log/%web_system%/domains/%domain%.log combined;
@ -32,7 +32,7 @@ server {
} }
location @fallback { location @fallback {
proxy_pass http://127.0.1.1:5320; proxy_pass http://127.0.0.1:5320;
} }
location ~ /\.ht {return 404;} location ~ /\.ht {return 404;}

View file

@ -17,7 +17,7 @@ server {
include %home%/%user%/conf/web/%domain%/nginx.hsts.conf*; include %home%/%user%/conf/web/%domain%/nginx.hsts.conf*;
location / { location / {
proxy_pass https://127.0.1.1:19443; proxy_pass https://127.0.0.1:19443;
location ~* ^.+\.(%proxy_extentions%)$ { location ~* ^.+\.(%proxy_extentions%)$ {
# root %sdocroot%; # root %sdocroot%;
access_log /var/log/%web_system%/domains/%domain%.log combined; access_log /var/log/%web_system%/domains/%domain%.log combined;
@ -32,7 +32,7 @@ server {
} }
location @fallback { location @fallback {
proxy_pass https://127.0.1.1:19443; proxy_pass https://127.0.0.1:19443;
} }
location ~ /\.ht {return 404;} location ~ /\.ht {return 404;}

View file

@ -22,7 +22,7 @@ server {
client_max_body_size 80m; client_max_body_size 80m;
location / { location / {
proxy_pass http://127.0.1.1:3003; proxy_pass http://127.0.0.1:3003;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_redirect off; proxy_redirect off;

View file

@ -16,7 +16,7 @@ server {
include %home%/%user%/conf/web/%domain%/nginx.hsts.conf*; include %home%/%user%/conf/web/%domain%/nginx.hsts.conf*;
location / { location / {
proxy_pass https://127.0.1.1:8020; proxy_pass https://127.0.0.1:8020;
proxy_set_header Host $http_host; proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;

View file

@ -30,13 +30,13 @@ server {
add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Origin *;
} }
location ~* ^(\/_matrix|\/_synapse) { location ~* ^(\/_matrix|\/_synapse) {
proxy_pass http://127.0.1.1:8008; proxy_pass http://127.0.0.1:8008;
proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-For $remote_addr;
# Nginx by default only allows file uploads up to 1M in size # Nginx by default only allows file uploads up to 1M in size
# Increase client_max_body_size to match max_upload_size defined in homeserver.yaml # Increase client_max_body_size to match max_upload_size defined in homeserver.yaml
} }
location /admin/ { location /admin/ {
proxy_pass http://127.0.1.1:8100/; proxy_pass http://127.0.0.1:8100/;
proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-For $remote_addr;
} }

View file

@ -22,7 +22,7 @@ server {
client_max_body_size 80m; client_max_body_size 80m;
location / { location / {
proxy_pass http://127.0.1.1:3000; proxy_pass http://127.0.0.1:3000;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_redirect off; proxy_redirect off;

View file

@ -17,7 +17,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:9010; proxy_pass http://127.0.0.1:9010;
location ~* ^.+\.(%proxy_extentions%)$ { location ~* ^.+\.(%proxy_extentions%)$ {
# root %sdocroot%; # root %sdocroot%;
access_log /var/log/%web_system%/domains/%domain%.log combined; access_log /var/log/%web_system%/domains/%domain%.log combined;
@ -27,7 +27,7 @@ server {
} }
} }
location ~ ^/(ws|terminal/.+)$ { location ~ ^/(ws|terminal/.+)$ {
proxy_pass http://127.0.1.1:9010; proxy_pass http://127.0.0.1:9010;
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade"; proxy_set_header Connection "Upgrade";
@ -38,7 +38,7 @@ server {
} }
location @fallback { location @fallback {
proxy_pass http://127.0.1.1:9010; proxy_pass http://127.0.0.1:9010;
} }
location ~ /\.ht {return 404;} location ~ /\.ht {return 404;}