ipv6-test-backend/nginx/conf.d/6.conf

23 lines
693 B
Plaintext
Raw Normal View History

2024-08-17 19:12:18 +08:00
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/;
2024-08-18 21:18:47 +08:00
proxy_set_header Connection $http_connection;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
2024-08-17 19:12:18 +08:00
}
}