diff --git a/templates/.nginx_stream_block.conf.j2.swp b/templates/.nginx_stream_block.conf.j2.swp new file mode 100644 index 0000000..a696806 Binary files /dev/null and b/templates/.nginx_stream_block.conf.j2.swp differ diff --git a/templates/nginx_server_block.conf.j2 b/templates/nginx_server_block.conf.j2 new file mode 100644 index 0000000..94f93df --- /dev/null +++ b/templates/nginx_server_block.conf.j2 @@ -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 }}; +} diff --git a/templates/nginx_stream_block.conf.j2 b/templates/nginx_stream_block.conf.j2 new file mode 100644 index 0000000..b605509 --- /dev/null +++ b/templates/nginx_stream_block.conf.j2 @@ -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; +}