nginx-proxy-manager/src/backend/templates/stream.conf

17 lines
528 B
Plaintext
Raw Normal View History

2018-08-16 19:25:59 -04:00
# ------------------------------------------------------------
# {{ incoming_port }} TCP: {{ tcp_forwarding }} UDP: {{ udp_forwarding }}
2018-08-16 19:25:59 -04:00
# ------------------------------------------------------------
{% if tcp_forwarding == 1 or tcp_forwarding == true -%}
server {
2018-08-16 19:25:59 -04:00
listen {{ incoming_port }};
proxy_pass {{ forward_ip }}:{{ forwarding_port }};
}
{% endif %}
{% if udp_forwarding == 1 or udp_forwarding == true %}
server {
2018-08-16 19:25:59 -04:00
listen {{ incoming_port }} udp;
proxy_pass {{ forward_ip }}:{{ forwarding_port }};
}
{% endif %}