pref: update domain

This commit is contained in:
thehrz 2024-08-17 19:12:18 +08:00
parent 5cb26a0c0b
commit 0e5ca9b0a4
Signed by: thehrz
GPG Key ID: C84CBCE7D5F88855
5 changed files with 59 additions and 9 deletions

View File

@ -26,7 +26,7 @@ services:
restart: always
labels:
- traefik.enable=true
- traefik.http.routers.ipv6-test.rule=Host(`test.thehrz.net`)
- 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:

20
nginx/conf.d/4.conf Normal file
View File

@ -0,0 +1,20 @@
server {
listen 80;
server_name 4.ipv6test.online;
gzip on;
gzip_min_length 1k;
gzip_buffers 4 16k;
gzip_http_version 1.1;
gzip_comp_level 9;
gzip_types text/plain application/x-javascript text/css application/xml text/javascript application/javascript application/json;
gzip_disable "MSIE [1-6]\.";
gzip_vary on;
location / {
proxy_pass http://ipv6-test-backend:8080/;
proxy_read_timeout 60;
proxy_connect_timeout 60;
proxy_redirect off;
}
}

17
nginx/conf.d/6.conf Normal file
View File

@ -0,0 +1,17 @@
server {
listen [::]:80;
server_name 6.ipv6test.online;
gzip on;
gzip_min_length 1k;
gzip_buffers 4 16k;
gzip_http_version 1.1;
gzip_comp_level 9;
gzip_types text/plain application/x-javascript text/css application/xml text/javascript application/javascript application/json;
gzip_disable "MSIE [1-6]\.";
gzip_vary on;
location / {
proxy_pass http://ipv6-test-backend:8080/;
}
}

20
nginx/conf.d/root.conf Normal file
View File

@ -0,0 +1,20 @@
server {
listen [::]:80;
server_name ipv6test.online;
gzip on;
gzip_min_length 1k;
gzip_buffers 4 16k;
gzip_http_version 1.1;
gzip_comp_level 9;
gzip_types text/plain application/x-javascript text/css application/xml text/javascript application/javascript application/json;
gzip_disable "MSIE [1-6]\.";
gzip_vary on;
location / {
proxy_pass http://ipv6-test-frontend:3000;
proxy_read_timeout 60;
proxy_connect_timeout 60;
proxy_redirect off;
}
}

View File

@ -1,7 +1,7 @@
server {
listen 80;
listen [::]:80;
server_name test.thehrz.net;
server_name test.ipv6test.online;
gzip on;
gzip_min_length 1k;
@ -13,13 +13,6 @@ server {
gzip_vary on;
location / {
proxy_pass http://ipv6-test-frontend:3000;
proxy_read_timeout 60;
proxy_connect_timeout 60;
proxy_redirect off;
}
location ^~ /api/ {
proxy_pass http://ipv6-test-backend:8080/;
}
}