mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-10-31 15:53:33 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			35 lines
		
	
	
		
			800 B
		
	
	
	
		
			Handlebars
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			800 B
		
	
	
	
		
			Handlebars
		
	
	
	
	
	
| {{#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}}
 |