Browse Source

role nginx: add options for proxy directive and additional root location configuration

python3
Andrea Cimbalo 6 years ago
parent
commit
b9de7c75fe
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      roles/nginx/templates/service.conf

+ 3
- 1
roles/nginx/templates/service.conf View File

@ -12,7 +12,9 @@
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_pass {{ remote_host | default("http://127.0.0.1:8080") }};
{{ proxy_type | default("proxy_pass") }} {{ remote_host | default("http://127.0.0.1:8080") }};
{% block root %}
{% endblock %}
}
{% endblock %}


Loading…
Cancel
Save