File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed
docker/rootfs/etc/nginx/conf.d/include Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change 11 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 %}
82 proxy_set_header Host $host;
93 proxy_set_header X-Forwarded-Scheme $scheme;
104 proxy_set_header X-Forwarded-Proto $scheme;
115 proxy_set_header X-Forwarded-For $remote_addr;
126 proxy_set_header X-Real-IP $remote_addr;
13- proxy_pass $targetUri ;
7+ proxy_pass {{ forward_scheme }}://{{ forward_host }}:{{ forward_port }}{{ forward_path }} ;
148
159 {% if access_list_id > 0 %}
1610 {% 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;
21add_header X-Served-By $host;
32proxy_set_header Host $host;
43proxy_set_header X-Forwarded-Scheme $scheme;
54proxy_set_header X-Forwarded-Proto $scheme;
65proxy_set_header X-Forwarded-For $remote_addr;
76proxy_set_header X-Real-IP $remote_addr;
8- proxy_pass $targetUri ;
7+ proxy_pass $forward_scheme://$server:$port$request_uri ;
98
You can’t perform that action at this time.
0 commit comments