Skip to content

Commit

Permalink
new: add vscode path
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddify-com committed Oct 16, 2023
1 parent e3d59b4 commit 5717775
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion nginx/parts/common.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,14 @@ location /{{ hconfigs['proxy_path'] }}/ {
uwsgi_pass localhost:9001;
error_page 301 302 307 = @handle_redirect;
}

{% if exec('[ -d "/opt/vscode/" ] && echo "true"') == "true" %}
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 5717775

Please sign in to comment.