docker-swarm-review

This commit is contained in:
2026-06-22 18:03:34 +08:00
parent 5074e9cc42
commit 5272cb5ead
10 changed files with 152 additions and 1 deletions

View File

@@ -7,7 +7,10 @@ server {
location /n1/ {
proxy_pass http://192.168.3.125:8080/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
if ($request_filename ~ .*\.(htm|html)$) {
add_header Cache-Control no-cache;
}
@@ -15,6 +18,7 @@ server {
location / {
proxy_pass http://192.168.3.119:8888;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;