2024-08-17 10:07:15 +08:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
listen [::]:80;
|
2024-08-17 14:17:11 +08:00
|
|
|
server_name test.thehrz.net;
|
2024-08-17 10:07:15 +08:00
|
|
|
|
|
|
|
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 / {
|
2024-08-17 13:37:45 +08:00
|
|
|
proxy_pass http://ipv6-test-frontend:3000;
|
2024-08-17 10:07:15 +08:00
|
|
|
proxy_read_timeout 60;
|
|
|
|
proxy_connect_timeout 60;
|
|
|
|
proxy_redirect off;
|
|
|
|
}
|
|
|
|
|
|
|
|
location ^~ /api/ {
|
2024-08-17 13:37:45 +08:00
|
|
|
proxy_pass http://ipv6-test-backend:8080/;
|
2024-08-17 10:07:15 +08:00
|
|
|
}
|
|
|
|
}
|