Merge cb28f983ee into 82d9452001
This commit is contained in:
commit
9982d33ba0
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 }};
|
||||||
|
|
||||||
{% include "_access.conf" %}
|
{% include "_access.conf" %}
|
||||||
|
|
|
||||||
|
|
@ -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