mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-10-31 07:43:33 +00:00 
			
		
		
		
	- Add ability to disable ipv6, fixes #312
- Added ipv6 listening to hosts when configured, fixes #236 and #149 - Added documentation about disabling ipv6 - Updated npm packages
This commit is contained in:
		| @@ -1,5 +1,15 @@ | ||||
|   listen 80; | ||||
| {% if ipv6 -%} | ||||
|   listen [::]:80; | ||||
| {% else -%} | ||||
|   #listen [::]:80; | ||||
| {% endif %} | ||||
| {% if certificate -%} | ||||
|   listen 443 ssl{% if http2_support %} http2{% endif %}; | ||||
| {% if ipv6 -%} | ||||
|   listen [::]:443; | ||||
| {% else -%} | ||||
|   #listen [::]:443; | ||||
| {% endif %} | ||||
| {% endif %} | ||||
|   server_name {{ domain_names | join: " " }}; | ||||
|   | ||||
| @@ -6,6 +6,12 @@ | ||||
| {% if tcp_forwarding == 1 or tcp_forwarding == true -%} | ||||
| server { | ||||
|   listen {{ incoming_port }}; | ||||
| {% if ipv6 -%} | ||||
|   listen [::]:{{ incoming_port }}; | ||||
| {% else -%} | ||||
|   #listen [::]:{{ incoming_port }}; | ||||
| {% endif %} | ||||
|  | ||||
|   proxy_pass {{ forward_ip }}:{{ forwarding_port }}; | ||||
|  | ||||
|   # Custom | ||||
| @@ -16,6 +22,11 @@ server { | ||||
| {% if udp_forwarding == 1 or udp_forwarding == true %} | ||||
| server { | ||||
|   listen {{ incoming_port }} udp; | ||||
| {% if ipv6 -%} | ||||
|   listen [::]:{{ incoming_port }} udp; | ||||
| {% else -%} | ||||
|   #listen [::]:{{ incoming_port }} udp; | ||||
| {% endif %} | ||||
|   proxy_pass {{ forward_ip }}:{{ forwarding_port }}; | ||||
|  | ||||
|   # Custom | ||||
|   | ||||
		Reference in New Issue
	
	Block a user