Files
athq-vm-management/templates/nginx_server_block.conf.j2
2022-12-24 00:16:19 +01:00

19 lines
370 B
Django/Jinja

server{
# {{ comment }}
listen 443 ssl;
listen [::]:443 ssl;
{% if servernames %}server_name{% for s in servernames %} {{ s }}{% endfor %};{% endif %}
include acme-challenge.conf;
location / {
proxy_pass http://{{ targetip }}:{{ targetport }};
proxy_set_header Host $http_host;
{{ proxy_pass_blob }}
}
}