🔨 Refactor host statements to objects

This commit is contained in:
Stefan Haun 2022-09-06 16:48:28 +02:00
parent e2138d5c3b
commit 6653129652
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@
server {
listen 80;
listen [::]:80;
server_name {{ host }};
server_name {{ host.name }};
location /.well-known/acme-challenge {
proxy_pass http://{{ item.server }}.n39.eu:80;

View file

@ -5,7 +5,7 @@ stream {
{% for i in ingress %}
{% if 'hosts' in i %}
{% for host in i.hosts %}
{{ host }} {{ i.server }};
{{ host.name }} {{ i.server }};
{% endfor %}
{% endif %}
{% endfor %}