File tree 2 files changed +2
-9
lines changed
docker/rootfs/etc/nginx/conf.d/include
2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change 1
1
location {{ path }} {
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 %}
8
2
proxy_set_header Host $host;
9
3
proxy_set_header X-Forwarded-Scheme $scheme;
10
4
proxy_set_header X-Forwarded-Proto $scheme;
11
5
proxy_set_header X-Forwarded-For $remote_addr;
12
6
proxy_set_header X-Real-IP $remote_addr;
13
- proxy_pass $targetUri ;
7
+ proxy_pass {{ forward_scheme }}://{{ forward_host }}:{{ forward_port }}{{ forward_path }} ;
14
8
15
9
{% if access_list_id > 0 %}
16
10
{% if access_list.items.length > 0 %}
Original file line number Diff line number Diff line change 1
- set $targetUri $forward_scheme://$server:$port$request_uri;
2
1
add_header X-Served-By $host;
3
2
proxy_set_header Host $host;
4
3
proxy_set_header X-Forwarded-Scheme $scheme;
5
4
proxy_set_header X-Forwarded-Proto $scheme;
6
5
proxy_set_header X-Forwarded-For $remote_addr;
7
6
proxy_set_header X-Real-IP $remote_addr;
8
- proxy_pass $targetUri ;
7
+ proxy_pass $forward_scheme://$server:$port$request_uri ;
9
8
You can’t perform that action at this time.
0 commit comments