mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-07-18 07:24:33 +00:00
Moved v3 code from NginxProxyManager/nginx-proxy-manager-3 to NginxProxyManager/nginx-proxy-manager
This commit is contained in:
34
backend/embed/nginx/stream.conf.hbs
Normal file
34
backend/embed/nginx/stream.conf.hbs
Normal file
@ -0,0 +1,34 @@
|
||||
{{#if enabled}}
|
||||
{{#if tcp_forwarding}}
|
||||
server {
|
||||
listen {{incoming_port}};
|
||||
{{#if ipv6}}
|
||||
listen [::]:{{incoming_port}};
|
||||
{{else}}
|
||||
#listen [::]:{{incoming_port}};
|
||||
{{/if}}
|
||||
|
||||
proxy_pass {{forward_ip}}:{{forwarding_port}};
|
||||
|
||||
# Custom
|
||||
include {{npm_data_dir}}/nginx/custom/server_stream[.]conf;
|
||||
include {{npm_data_dir}}/nginx/custom/server_stream_tcp[.]conf;
|
||||
}
|
||||
{{/if}}
|
||||
|
||||
{{#if udp_forwarding}}
|
||||
server {
|
||||
listen {{incoming_port}} udp;
|
||||
{{#if ipv6}}
|
||||
listen [::]:{{ incoming_port }} udp;
|
||||
{{else}}
|
||||
#listen [::]:{{incoming_port}} udp;
|
||||
{{/if}}
|
||||
proxy_pass {{forward_ip}}:{{forwarding_port}};
|
||||
|
||||
# Custom
|
||||
include {{npm_data_dir}}/nginx/custom/server_stream[.]conf;
|
||||
include {{npm_data_dir}}/nginx/custom/server_stream_udp[.]conf;
|
||||
}
|
||||
{{/if}}
|
||||
{{/if}}
|
Reference in New Issue
Block a user