fix: cleanup templates

This commit is contained in:
2022-12-21 14:32:12 +01:00
parent 984ee9f214
commit 70b4899efc
4 changed files with 80 additions and 9 deletions

View File

@@ -5,11 +5,12 @@ server{
listen 443 ssl;
listen [::]:443 ssl;
{% if servernames %}
server_name {% for s in servernames %} {{ s }} {% endfor %};
{% endif %}
{% if servernames %}server_name{% for s in servernames %} {{ s }}{% endfor %};{% endif %}
include locations/acme-challenge.conf;
proxy_pass http://{{ targetip }}:{{ targetport }};
include acme-challenge.conf;
location / {
proxy_pass http://{{ targetip }}:{{ targetport }};
}
}