Removed proxy_set_header from _location.conf and added defaults in location schema
This commit is contained in:
parent
8e5255a275
commit
cb28f983ee
2 changed files with 5 additions and 6 deletions
|
@ -1,9 +1,4 @@
|
||||||
location {{ path }} {
|
location {{ path }} {
|
||||||
proxy_set_header Host $host;
|
|
||||||
proxy_set_header X-Forwarded-Scheme $scheme;
|
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
|
||||||
proxy_set_header X-Forwarded-For $remote_addr;
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
proxy_pass {{ forward_scheme }}://{{ forward_host }}:{{ forward_port }}{{ forward_path }};
|
proxy_pass {{ forward_scheme }}://{{ forward_host }}:{{ forward_port }}{{ forward_path }};
|
||||||
|
|
||||||
{% if access_list_id > 0 %}
|
{% if access_list_id > 0 %}
|
||||||
|
|
|
@ -7,7 +7,11 @@ const model = Backbone.Model.extend({
|
||||||
return {
|
return {
|
||||||
opened: false,
|
opened: false,
|
||||||
path: '',
|
path: '',
|
||||||
advanced_config: '',
|
advanced_config: 'proxy_set_header Host $host;\n' +
|
||||||
|
'proxy_set_header X-Forwarded-Scheme $scheme;\n' +
|
||||||
|
'proxy_set_header X-Forwarded-Proto $scheme;\n' +
|
||||||
|
'proxy_set_header X-Forwarded-For $remote_addr;\n' +
|
||||||
|
'proxy_set_header X-Real-IP $remote_addr;',
|
||||||
forward_scheme: 'http',
|
forward_scheme: 'http',
|
||||||
forward_host: '',
|
forward_host: '',
|
||||||
forward_port: '80'
|
forward_port: '80'
|
||||||
|
|
Loading…
Reference in a new issue