|
|
@ -1,20 +1,20 @@ |
|
|
|
{% block proxy_conf %} |
|
|
|
{# |
|
|
|
This is the default block that gets included if the |
|
|
|
child template does not declare a {% block proxy_conf %} |
|
|
|
#} |
|
|
|
location /{{ proxy_location_path | default("")}} { |
|
|
|
client_max_body_size {{ max_body_size | default(8) }}M; |
|
|
|
proxy_set_header Upgrade $http_upgrade; |
|
|
|
proxy_set_header Connection "upgrade"; |
|
|
|
proxy_set_header Host $http_host; |
|
|
|
proxy_set_header X-Real-IP $remote_addr; |
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
|
|
|
proxy_set_header X-Forwarded-Proto $scheme; |
|
|
|
proxy_set_header X-Frame-Options SAMEORIGIN; |
|
|
|
{{ proxy_type | default("proxy_pass") }} {{ remote_host | default("http://127.0.0.1:8080") }}; |
|
|
|
{% block root %} |
|
|
|
{% endblock %} |
|
|
|
{# |
|
|
|
This is the default block that gets included if the |
|
|
|
child template does not declare a {% block proxy_conf %} |
|
|
|
#} |
|
|
|
location /{{ proxy_location_path | default("")}} { |
|
|
|
client_max_body_size {{ max_body_size | default(8) }}M; |
|
|
|
proxy_set_header Upgrade $http_upgrade; |
|
|
|
proxy_set_header Connection "upgrade"; |
|
|
|
proxy_set_header Host $http_host; |
|
|
|
proxy_set_header X-Real-IP $remote_addr; |
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
|
|
|
proxy_set_header X-Forwarded-Proto $scheme; |
|
|
|
proxy_set_header X-Frame-Options SAMEORIGIN; |
|
|
|
{{ proxy_type | default("proxy_pass") }} {{ remote_host | default("http://127.0.0.1:8080") }}; |
|
|
|
{% block root %} |
|
|
|
{% endblock %} |
|
|
|
} |
|
|
|
{% endblock %} |
|
|
|
|
|
|
|