mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-25 07:33:07 +01:00
Add SSL certificate to TCP streams if certificate in database
This commit is contained in:
1 parent
498109addb
commit
3091c21cae
6 files changed
+23
-6
No files matched your search
@@ -5,13 +5,15 @@
|
||||
{% if enabled %}
|
||||
{% if tcp_forwarding == 1 or tcp_forwarding == true -%}
|
||||
server {
|
||||
listen {{ incoming_port }};
|
||||
listen {{ incoming_port }}{% if certificate %} ssl{% endif %};
|
||||
{% if ipv6 -%}
|
||||
listen [::]:{{ incoming_port }};
|
||||
listen [::]:{{ incoming_port }}{% if certificate %} ssl{% endif %};
|
||||
{% else -%}
|
||||
#listen [::]:{{ incoming_port }};
|
||||
#listen [::]:{{ incoming_port }}{% if certificate %} ssl{% endif %};
|
||||
{% endif %}
|
||||
|
||||
{% include "_certificates_stream.conf" %}
|
||||
|
||||
proxy_pass {{ forwarding_host }}:{{ forwarding_port }};
|
||||
|
||||
# Custom
|
||||
|
||||
Reference in new issue
Block a user