Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddify-com committed Oct 16, 2023
1 parent 5daed9d commit e028f64
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions nginx/parts/common.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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%}
Expand All @@ -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;

0 comments on commit e028f64

Please sign in to comment.