Put extra locations above default ones in nginx config
This commit is contained in:
parent
34ed3289ba
commit
7a44fa5df1
@ -33,6 +33,15 @@ server {
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if server.locations is defined %}
|
||||||
|
# Extra manually-defined locations
|
||||||
|
{% for location in server.locations %}
|
||||||
|
location {{ location.location }} {
|
||||||
|
{{ location.contents }}
|
||||||
|
}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if server.proxy_pass is defined %}
|
{% if server.proxy_pass is defined %}
|
||||||
# Singular proxy_pass
|
# Singular proxy_pass
|
||||||
location / {
|
location / {
|
||||||
@ -49,15 +58,6 @@ server {
|
|||||||
proxy_pass {{ proxy.pass }};
|
proxy_pass {{ proxy.pass }};
|
||||||
}
|
}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if server.locations is defined %}
|
|
||||||
# Extra manually-defined locations
|
|
||||||
{% for location in server.locations %}
|
|
||||||
location {{ location.location }} {
|
|
||||||
{{ location.contents }}
|
|
||||||
}
|
|
||||||
{% endfor %}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
resolver {{ ingress_resolver }};
|
resolver {{ ingress_resolver }};
|
||||||
|
Loading…
Reference in New Issue
Block a user