2022-08-27 14:03:10 +02:00
|
|
|
# Dehydrated forwardings for server {{ item.server }}
|
|
|
|
{% if 'hosts' in item %}
|
|
|
|
{% for host in item.hosts %}
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
listen [::]:80;
|
2022-09-06 16:48:28 +02:00
|
|
|
server_name {{ host.name }};
|
2022-08-27 14:03:10 +02:00
|
|
|
|
|
|
|
location /.well-known/acme-challenge {
|
|
|
|
proxy_pass http://{{ item.server }}.n39.eu:80;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|