This commit is contained in:
parent
4bac1a6aaf
commit
c6501209f8
@ -7,9 +7,9 @@ upstream {{ item.upstream.name }} {
|
|||||||
server {{ upserver }};
|
server {{ upserver }};
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
}
|
}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% for server in item.servers %}
|
{% for server in item.servers %}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen {{ server.port }}{{ ' ssl' if server.tls is defined and server.tls else '' }};
|
listen {{ server.port }}{{ ' ssl' if server.tls is defined and server.tls else '' }};
|
||||||
server_name {{ server.server_name }};
|
server_name {{ server.server_name }};
|
||||||
@ -36,14 +36,15 @@ server {
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if location.index is defined and location.index %}
|
{% if location.index is defined and location.index %}
|
||||||
index {{ location.index }};
|
index {{ location.index }};
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if location.proxy_pass is defined and location.proxy_pass %}
|
{% if location.proxy_pass is defined and location.proxy_pass %}
|
||||||
|
proxy_pass {{ location.proxy_pass }};
|
||||||
proxy_pass {{ location.proxy_pass }}
|
|
||||||
{% if location.proxy_http_version is defined and location.proxy_http_version %}
|
{% if location.proxy_http_version is defined and location.proxy_http_version %}
|
||||||
proxy_http_version {{ location.proxy_http_version }};
|
proxy_http_version {{ location.proxy_http_version }};
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% for pheader in location.proxy_headers | default([]) %}
|
{% for pheader in location.proxy_headers | default([]) %}
|
||||||
|
|
||||||
proxy_set_header {{ pheader }};
|
proxy_set_header {{ pheader }};
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -57,5 +58,4 @@ server {
|
|||||||
}
|
}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
}
|
}
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user