pref: update nginx config

This commit is contained in:
thehrz 2024-08-17 19:41:48 +08:00
parent 0e5ca9b0a4
commit 02c80d06d6
Signed by: thehrz
GPG Key ID: C84CBCE7D5F88855
2 changed files with 10 additions and 5 deletions

View File

@ -24,11 +24,13 @@ services:
build: ./nginx build: ./nginx
container_name: ipv6-test-nginx container_name: ipv6-test-nginx
restart: always restart: always
labels: ports:
- traefik.enable=true - 80:80
- traefik.http.routers.ipv6-test.rule=Host(`test.ipv6test.online`) || Host(`4.ipv6test.online`) || Host(`6.ipv6test.online`) # labels:
- traefik.http.routers.ipv6-test.entrypoints=web,websecure # - traefik.enable=true
- traefik.http.routers.ipv6-test.tls.certresolver=letsencrypt # - traefik.http.routers.ipv6-test.rule=Host(`test.ipv6test.online`) || Host(`4.ipv6test.online`) || Host(`6.ipv6test.online`)
# - traefik.http.routers.ipv6-test.entrypoints=web,websecure
# - traefik.http.routers.ipv6-test.tls.certresolver=letsencrypt
networks: networks:
- traefik - traefik
- ipv6-test - ipv6-test

View File

@ -13,5 +13,8 @@ server {
location / { location / {
proxy_pass http://ipv6-test-backend:8080/; proxy_pass http://ipv6-test-backend:8080/;
proxy_read_timeout 60;
proxy_connect_timeout 60;
proxy_redirect off;
} }
} }