14 lines
329 B
Django/Jinja
14 lines
329 B
Django/Jinja
# Dehydrated forwardings for server {{ item.server }}
|
|
{% if 'hosts' in item %}
|
|
{% for host in item.hosts %}
|
|
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
server_name {{ host }};
|
|
|
|
location /.well-known/acme-challenge {
|
|
proxy_pass http://{{ item.server }}.n39.eu:80;
|
|
}
|
|
}
|
|
{% endfor %}
|
|
{% endif %}
|