mirror of
https://github.com/FAUSheppy/athq-vm-management
synced 2025-12-07 06:11:35 +01:00
feat: nginx jinja templates
This commit is contained in:
BIN
templates/.nginx_stream_block.conf.j2.swp
Normal file
BIN
templates/.nginx_stream_block.conf.j2.swp
Normal file
Binary file not shown.
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 }};
|
||||||
|
}
|
||||||
10
templates/nginx_stream_block.conf.j2
Normal file
10
templates/nginx_stream_block.conf.j2
Normal 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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user