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
container_name: ipv6-test-nginx
restart: always
labels:
- traefik.enable=true
- 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
ports:
- 80:80
# labels:
# - traefik.enable=true
# - 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:
- traefik
- ipv6-test

View File

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