fix: update nginx config

This commit is contained in:
thehrz 2024-08-17 13:37:45 +08:00
parent c5992865fc
commit e4fd5749c3
Signed by: thehrz
GPG Key ID: C84CBCE7D5F88855
2 changed files with 2 additions and 7 deletions

View File

@ -30,7 +30,6 @@ services:
- traefik.http.routers.ipv6-test.rule=Host(`ipv6-test.thehrz.net`)
- traefik.http.routers.ipv6-test.entrypoints=web,websecure
- traefik.http.routers.ipv6-test.tls.certresolver=letsencrypt
- traefik.http.services.ipv6-test.loadbalancer.server.port=3000
networks:
- traefik
- ipv6-test

View File

@ -1,7 +1,3 @@
upstream backend {
server ipv6-test-backend:8080;
}
server {
listen 80;
listen [::]:80;
@ -17,13 +13,13 @@ server {
gzip_vary on;
location / {
proxy_pass http://frontend:3000;
proxy_pass http://ipv6-test-frontend:3000;
proxy_read_timeout 60;
proxy_connect_timeout 60;
proxy_redirect off;
}
location ^~ /api/ {
proxy_pass http://backend/;
proxy_pass http://ipv6-test-backend:8080/;
}
}