|
@@ -5,14 +5,10 @@
|
|
|
{% if enabled %}
|
|
{% if enabled %}
|
|
|
{% if tcp_forwarding == 1 or tcp_forwarding == true -%}
|
|
{% if tcp_forwarding == 1 or tcp_forwarding == true -%}
|
|
|
server {
|
|
server {
|
|
|
- listen {{ incoming_port }}{% if certificate %} ssl{% endif %};
|
|
|
|
|
-{% if ipv6 -%}
|
|
|
|
|
- listen [::]:{{ incoming_port }}{% if certificate %} ssl{% endif %};
|
|
|
|
|
-{% else -%}
|
|
|
|
|
- #listen [::]:{{ incoming_port }}{% if certificate %} ssl{% endif %};
|
|
|
|
|
-{% endif %}
|
|
|
|
|
|
|
+ listen {{ incoming_port }} {%- if certificate %} ssl {%- endif %};
|
|
|
|
|
+ {% unless ipv6 -%} # {%- endunless -%} listen [::]:{{ incoming_port }} {%- if certificate %} ssl {%- endif %};
|
|
|
|
|
|
|
|
-{% include "_certificates_stream.conf" %}
|
|
|
|
|
|
|
+ {%- include "_certificates_stream.conf" %}
|
|
|
|
|
|
|
|
proxy_pass {{ forwarding_host }}:{{ forwarding_port }};
|
|
proxy_pass {{ forwarding_host }}:{{ forwarding_port }};
|
|
|
|
|
|
|
@@ -21,14 +17,12 @@ server {
|
|
|
include /data/nginx/custom/server_stream_tcp[.]conf;
|
|
include /data/nginx/custom/server_stream_tcp[.]conf;
|
|
|
}
|
|
}
|
|
|
{% endif %}
|
|
{% endif %}
|
|
|
-{% if udp_forwarding == 1 or udp_forwarding == true %}
|
|
|
|
|
|
|
+
|
|
|
|
|
+{% if udp_forwarding == 1 or udp_forwarding == true -%}
|
|
|
server {
|
|
server {
|
|
|
listen {{ incoming_port }} udp;
|
|
listen {{ incoming_port }} udp;
|
|
|
-{% if ipv6 -%}
|
|
|
|
|
- listen [::]:{{ incoming_port }} udp;
|
|
|
|
|
-{% else -%}
|
|
|
|
|
- #listen [::]:{{ incoming_port }} udp;
|
|
|
|
|
-{% endif %}
|
|
|
|
|
|
|
+ {% unless ipv6 -%} # {%- endunless -%} listen [::]:{{ incoming_port }} udp;
|
|
|
|
|
+
|
|
|
proxy_pass {{ forwarding_host }}:{{ forwarding_port }};
|
|
proxy_pass {{ forwarding_host }}:{{ forwarding_port }};
|
|
|
|
|
|
|
|
# Custom
|
|
# Custom
|