pref: update nginx config
All checks were successful
CI / deploy (push) Successful in 2m26s

This commit is contained in:
thehrz 2024-08-18 21:18:47 +08:00
parent e8d67b7b7b
commit e009b52c7b
Signed by: thehrz
GPG Key ID: C84CBCE7D5F88855
4 changed files with 24 additions and 9 deletions

View File

@ -13,8 +13,11 @@ server {
location / { location / {
proxy_pass http://ipv6-test-backend:8080/; proxy_pass http://ipv6-test-backend:8080/;
proxy_read_timeout 60; proxy_set_header Connection $http_connection;
proxy_connect_timeout 60; proxy_set_header Upgrade $http_upgrade;
proxy_redirect off; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
} }
} }

View File

@ -13,8 +13,11 @@ server {
location / { location / {
proxy_pass http://ipv6-test-backend:8080/; proxy_pass http://ipv6-test-backend:8080/;
proxy_read_timeout 60; proxy_set_header Connection $http_connection;
proxy_connect_timeout 60; proxy_set_header Upgrade $http_upgrade;
proxy_redirect off; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
} }
} }

View File

@ -14,8 +14,11 @@ server {
location / { location / {
proxy_pass http://ipv6-test-frontend:3000; proxy_pass http://ipv6-test-frontend:3000;
proxy_read_timeout 60; proxy_set_header Connection $http_connection;
proxy_connect_timeout 60; proxy_set_header Upgrade $http_upgrade;
proxy_redirect off; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
} }
} }

View File

@ -14,5 +14,11 @@ server {
location / { location / {
proxy_pass http://ipv6-test-backend:8080/; proxy_pass http://ipv6-test-backend:8080/;
proxy_set_header Connection $http_connection;
proxy_set_header Upgrade $http_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;
proxy_set_header X-Forwarded-Proto $scheme;
} }
} }