From e028f649ede34ab05a1e97efc92330f36d9baa8c Mon Sep 17 00:00:00 2001 From: hiddify Date: Mon, 16 Oct 2023 14:12:25 +0200 Subject: [PATCH] update --- nginx/parts/common.conf.j2 | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/nginx/parts/common.conf.j2 b/nginx/parts/common.conf.j2 index f15734f93..14fd626e4 100644 --- a/nginx/parts/common.conf.j2 +++ b/nginx/parts/common.conf.j2 @@ -85,7 +85,7 @@ location /{{ hconfigs['proxy_path'] }}/ { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; add_header X-Robots-Tag "noindex, nofollow"; - {% if os.path.exists("/opt/develop/") %} + {% if os.path.exists("/opt/hiddify-develop/") %} proxy_pass http://localhost:9000/{{ hconfigs['proxy_path'] }}/; #proxy_pass http://unix:/run/hiddifypanel.sock:/{{ hconfigs['proxy_path'] }}/; {%else%} @@ -94,14 +94,6 @@ location /{{ hconfigs['proxy_path'] }}/ { {%endif%} error_page 301 302 307 = @handle_redirect; } -{% if os.path.exists("/opt/vscode/") %} -location /{{ hconfigs['proxy_path'] }}/vscode { - proxy_set_header Host $host; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Real-IP $remote_addr; - add_header X-Robots-Tag "noindex, nofollow"; - proxy_pass http://127.0.0.1:9010/; -} -{%endif%} + resolver 8.8.8.8; \ No newline at end of file