🔨 Refactor host statements to objects
This commit is contained in:
parent
e2138d5c3b
commit
6653129652
2 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
server_name {{ host }};
|
server_name {{ host.name }};
|
||||||
|
|
||||||
location /.well-known/acme-challenge {
|
location /.well-known/acme-challenge {
|
||||||
proxy_pass http://{{ item.server }}.n39.eu:80;
|
proxy_pass http://{{ item.server }}.n39.eu:80;
|
||||||
|
|
|
@ -5,7 +5,7 @@ stream {
|
||||||
{% for i in ingress %}
|
{% for i in ingress %}
|
||||||
{% if 'hosts' in i %}
|
{% if 'hosts' in i %}
|
||||||
{% for host in i.hosts %}
|
{% for host in i.hosts %}
|
||||||
{{ host }} {{ i.server }};
|
{{ host.name }} {{ i.server }};
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in a new issue