File tree 2 files changed +11
-17
lines changed
2 files changed +11
-17
lines changed Original file line number Diff line number Diff line change 1
- {% if certificate and certificate_id > 0 - %}
1
+ {% if certificate and certificate_id > 0 %}
2
2
{% if certificate.provider == "letsencrypt" %}
3
3
# Let's Encrypt SSL
4
4
include conf.d/include/ssl-cache-stream.conf;
5
5
include conf.d/include/ssl-ciphers.conf;
6
6
ssl_certificate /etc/letsencrypt/live/npm-{{ certificate_id }}/fullchain.pem;
7
7
ssl_certificate_key /etc/letsencrypt/live/npm-{{ certificate_id }}/privkey.pem;
8
- {% else %}
8
+ {%- else %}
9
9
# Custom SSL
10
10
ssl_certificate /data/custom_ssl/npm-{{ certificate_id }}/fullchain.pem;
11
11
ssl_certificate_key /data/custom_ssl/npm-{{ certificate_id }}/privkey.pem;
12
- {% endif %}
13
- {% endif %}
12
+ {%- endif - %}
13
+ {%- endif - %}
Original file line number Diff line number Diff line change 5
5
{% if enabled %}
6
6
{% if tcp_forwarding == 1 or tcp_forwarding == true -%}
7
7
server {
8
- listen {{ incoming_port }}{% if certificate %} ssl{% endif %};
9
- {% if ipv6 -%}
10
- listen [::]:{{ incoming_port }}{% if certificate %} ssl{% endif %};
11
- {% else -%}
12
- #listen [::]:{{ incoming_port }}{% if certificate %} ssl{% endif %};
13
- {% endif %}
8
+ listen {{ incoming_port }} {%- if certificate %} ssl {%- endif %};
9
+ {% unless ipv6 -%} # {%- endunless -%} listen [::]:{{ incoming_port }} {%- if certificate %} ssl {%- endif %};
14
10
15
- {% include "_certificates_stream.conf" %}
11
+ {%- include "_certificates_stream.conf" %}
16
12
17
13
proxy_pass {{ forwarding_host }}:{{ forwarding_port }};
18
14
@@ -21,14 +17,12 @@ server {
21
17
include /data/nginx/custom/server_stream_tcp[.]conf;
22
18
}
23
19
{% endif %}
24
- {% if udp_forwarding == 1 or udp_forwarding == true %}
20
+
21
+ {% if udp_forwarding == 1 or udp_forwarding == true -%}
25
22
server {
26
23
listen {{ incoming_port }} udp;
27
- {% if ipv6 -%}
28
- listen [::]:{{ incoming_port }} udp;
29
- {% else -%}
30
- #listen [::]:{{ incoming_port }} udp;
31
- {% endif %}
24
+ {% unless ipv6 -%} # {%- endunless -%} listen [::]:{{ incoming_port }} udp;
25
+
32
26
proxy_pass {{ forwarding_host }}:{{ forwarding_port }};
33
27
34
28
# Custom
You can’t perform that action at this time.
0 commit comments