Update site.py

pull/653/head
Mr Chen 5 months ago
parent ea3033e22a
commit 8b391f03c2
  1. 13
      web/utils/site.py

@ -1515,6 +1515,7 @@ class sites(object):
tpl = "#PROXY-START\n\ tpl = "#PROXY-START\n\
location ^~ {from} {\n \ location ^~ {from} {\n \
add_header X-Cache $upstream_cache_status;\n \
{cors}\n\ {cors}\n\
proxy_pass {to};\n \ proxy_pass {to};\n \
proxy_set_header Host {host};\n \ proxy_set_header Host {host};\n \
@ -1522,13 +1523,11 @@ location ^~ {from} {\n \
proxy_set_header X-Real-IP $remote_addr;\n \ proxy_set_header X-Real-IP $remote_addr;\n \
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n \ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n \
proxy_set_header REMOTE-HOST $remote_addr;\n \ proxy_set_header REMOTE-HOST $remote_addr;\n \
proxy_set_header Upgrade $http_upgrade;\n \ proxy_set_header Upgrade $http_upgrade;\n\
proxy_set_header Connection $connection_upgrade;\n \ proxy_set_header Connection $connection_upgrade;\n\
proxy_http_version 1.1;\n \ proxy_http_version 1.1;\n\
\n \ \n\
add_header X-Cache $upstream_cache_status;\n \ {proxy_cache}\n\
\n \
{proxy_cache}\n \
}\n\ }\n\
# PROXY-END" # PROXY-END"

Loading…
Cancel
Save