mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-03 16:03:38 +00:00
30 lines
870 B
Plaintext
30 lines
870 B
Plaintext
# ------------------------------------------------------------
|
|
# {{ incoming_port }} TCP: {{ tcp_forwarding }} UDP: {{ udp_forwarding }}
|
|
# ------------------------------------------------------------
|
|
|
|
{% if enabled %}
|
|
{% if tcp_forwarding == 1 or tcp_forwarding == true -%}
|
|
server {
|
|
listen {{ incoming_port }};
|
|
listen [::]:{{ incoming_port }};
|
|
|
|
proxy_pass {{ forwarding_host }}:{{ forwarding_port }};
|
|
|
|
# Custom
|
|
include /data/nginx/custom/server_stream.conf;
|
|
include /data/nginx/custom/server_stream_tcp.conf;
|
|
}
|
|
{% endif %}
|
|
{% if udp_forwarding == 1 or udp_forwarding == true %}
|
|
server {
|
|
listen {{ incoming_port }} udp;
|
|
listen [::]:{{ incoming_port }} udp;
|
|
proxy_pass {{ forwarding_host }}:{{ forwarding_port }};
|
|
|
|
# Custom
|
|
include /data/nginx/custom/server_stream.conf;
|
|
include /data/nginx/custom/server_stream_udp.conf;
|
|
}
|
|
{% endif %}
|
|
{% endif %}
|