feat: nginx jinja templates

This commit is contained in:
2022-12-21 13:49:13 +01:00
parent d729c551c1
commit ef3cf38c94
3 changed files with 25 additions and 0 deletions

Binary file not shown.

View 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 }};
}

View File

@@ -0,0 +1,10 @@
server {
# {{ comment }}
listen {{ portstring }} {% if udp %} udp {% endif %}{% if ssl %} ssl {% endif %};
proxy_pass {{ targetip }}:$server_port;
{% if transparent %} proxy_bind $remote_addr transparent; {% endif }
proxy_timeout 10s;
proxy_responses 1;
}