Skip to content

Commit b9de7c7

Browse files
committed
role nginx: add options for proxy directive and additional root location configuration
1 parent 414d549 commit b9de7c7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

roles/nginx/templates/service.conf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
1313
proxy_set_header X-Forwarded-Proto $scheme;
1414
proxy_set_header X-Frame-Options SAMEORIGIN;
15-
proxy_pass {{ remote_host | default("http://127.0.0.1:8080") }};
15+
{{ proxy_type | default("proxy_pass") }} {{ remote_host | default("http://127.0.0.1:8080") }};
16+
{% block root %}
17+
{% endblock %}
1618
}
1719
{% endblock %}
1820

0 commit comments

Comments
 (0)