Added disable/enable to remaining objects

This commit is contained in:
Jamie Curnow
2019-01-03 21:04:11 +10:00
parent ad41cc985d
commit 424ccce43c
26 changed files with 659 additions and 32 deletions

View File

@@ -1,5 +1,6 @@
{% include "_header_comment.conf" %}
{% if enabled %}
server {
{% include "_listen.conf" %}
{% include "_certificates.conf" %}
@@ -10,3 +11,4 @@ server {
return 404;
}
{% endif %}

View File

@@ -1,5 +1,6 @@
{% include "_header_comment.conf" %}
{% if enabled %}
server {
{% include "_listen.conf" %}
{% include "_certificates.conf" %}
@@ -22,3 +23,4 @@ server {
{% endif %}
}
}
{% endif %}

View File

@@ -2,6 +2,7 @@
# {{ incoming_port }} TCP: {{ tcp_forwarding }} UDP: {{ udp_forwarding }}
# ------------------------------------------------------------
{% if enabled %}
{% if tcp_forwarding == 1 or tcp_forwarding == true -%}
server {
listen {{ incoming_port }};
@@ -14,3 +15,4 @@ server {
proxy_pass {{ forward_ip }}:{{ forwarding_port }};
}
{% endif %}
{% endif %}