diff options
| author | crupest <crupest@outlook.com> | 2022-11-21 11:16:58 +0800 | 
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2022-11-21 11:16:58 +0800 | 
| commit | 75daeed5c74ae0c50eb77939352c889e947a3675 (patch) | |
| tree | d7e074331f7f8fe8aef0a725b2d379310920ce91 /template/nginx/reverse-proxy.conf.template | |
| parent | 0f8f5d3ad0506e0629e08492ed49eb845fd3cc35 (diff) | |
| download | crupest-75daeed5c74ae0c50eb77939352c889e947a3675.tar.gz crupest-75daeed5c74ae0c50eb77939352c889e947a3675.tar.bz2 crupest-75daeed5c74ae0c50eb77939352c889e947a3675.zip  | |
Optimize nginx reverse-proxy template.
Diffstat (limited to 'template/nginx/reverse-proxy.conf.template')
| -rw-r--r-- | template/nginx/reverse-proxy.conf.template | 5 | 
1 files changed, 2 insertions, 3 deletions
diff --git a/template/nginx/reverse-proxy.conf.template b/template/nginx/reverse-proxy.conf.template index 2fc94b0..81ba1e9 100644 --- a/template/nginx/reverse-proxy.conf.template +++ b/template/nginx/reverse-proxy.conf.template @@ -8,16 +8,15 @@ server {      server_name ${CRUPEST_NGINX_SUBDOMAIN}.${CRUPEST_DOMAIN};      location / { -        proxy_pass http://${CRUPEST_NGINX_UPSTREAM_NAME}; +        proxy_cache off;          proxy_http_version 1.1;          proxy_set_header Upgrade $http_upgrade;          proxy_set_header Connection $connection_upgrade; -        proxy_cache off; -        proxy_buffering off;          proxy_set_header Host $host;          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;          proxy_set_header X-Forwarded-Proto $scheme;          proxy_set_header X-Real-IP $remote_addr; +        proxy_pass http://${CRUPEST_NGINX_UPSTREAM_NAME};      }  }  | 
