File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
docker/rootfs/etc/nginx/conf.d/include Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 11 location {{ path }} {
2- set $upstream {{ forward_scheme }}://{{ forward_host }}:{{ forward_port }}{{ forward_path }}$request_uri;
2+ set $targetUri {{ forward_scheme }}://{{ forward_host }}:{{ forward_port }}{{ forward_path }};
3+ {% unless path contains "~" and path contains "(" and path contains ")" %}
4+ if ($request_uri != /){
5+ set $targetUri $targetUri$request_uri;
6+ }
7+ {% endunless %}
38 proxy_set_header Host $host;
49 proxy_set_header X-Forwarded-Scheme $scheme;
510 proxy_set_header X-Forwarded-Proto $scheme;
611 proxy_set_header X-Forwarded-For $remote_addr;
712 proxy_set_header X-Real-IP $remote_addr;
8- proxy_pass $upstream ;
13+ proxy_pass $targetUri ;
914
1015 {% if access_list_id > 0 %}
1116 {% if access_list.items.length > 0 %}
Original file line number Diff line number Diff line change 1- set $upstream $forward_scheme://$server:$port$request_uri;
1+ set $targetUri $forward_scheme://$server:$port$request_uri;
22add_header X-Served-By $host;
33proxy_set_header Host $host;
44proxy_set_header X-Forwarded-Scheme $scheme;
55proxy_set_header X-Forwarded-Proto $scheme;
66proxy_set_header X-Forwarded-For $remote_addr;
77proxy_set_header X-Real-IP $remote_addr;
8- proxy_pass $upstream ;
8+ proxy_pass $targetUri ;
99
You can’t perform that action at this time.
0 commit comments