mirror of
https://github.com/FAUSheppy/athq-vm-management
synced 2025-12-06 05:41:35 +01:00
feat: nginx jinja templates
This commit is contained in:
15
templates/nginx_server_block.conf.j2
Normal file
15
templates/nginx_server_block.conf.j2
Normal file
@@ -0,0 +1,15 @@
|
||||
server{
|
||||
|
||||
# {{ comment }}
|
||||
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
|
||||
{% if servernames %}
|
||||
server_name {% for s in servernames %} {{ s }} {% endfor %};
|
||||
{% endif %}
|
||||
|
||||
include locations/acme-challenge.conf;
|
||||
|
||||
proxy_pass http://{{ targetip }}:{{ targetport }};
|
||||
}
|
||||
Reference in New Issue
Block a user