mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-11-04 01:15:14 +00:00 
			
		
		
		
	Merge remote-tracking branch 'upstream/develop' into develop
This commit is contained in:
		@@ -2,6 +2,7 @@
 | 
			
		||||
{% if certificate.provider == "letsencrypt" %}
 | 
			
		||||
  # Let's Encrypt SSL
 | 
			
		||||
  include conf.d/include/letsencrypt-acme-challenge.conf;
 | 
			
		||||
  include conf.d/include/ssl-cache.conf;
 | 
			
		||||
  include conf.d/include/ssl-ciphers.conf;
 | 
			
		||||
  ssl_certificate /etc/letsencrypt/live/npm-{{ certificate_id }}/fullchain.pem;
 | 
			
		||||
  ssl_certificate_key /etc/letsencrypt/live/npm-{{ certificate_id }}/privkey.pem;
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										13
									
								
								backend/templates/_certificates_stream.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								backend/templates/_certificates_stream.conf
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
			
		||||
{% if certificate and certificate_id > 0 %}
 | 
			
		||||
{% if certificate.provider == "letsencrypt" %}
 | 
			
		||||
  # Let's Encrypt SSL
 | 
			
		||||
  include conf.d/include/ssl-cache-stream.conf;
 | 
			
		||||
  include conf.d/include/ssl-ciphers.conf;
 | 
			
		||||
  ssl_certificate /etc/letsencrypt/live/npm-{{ certificate_id }}/fullchain.pem;
 | 
			
		||||
  ssl_certificate_key /etc/letsencrypt/live/npm-{{ certificate_id }}/privkey.pem;
 | 
			
		||||
{%- else %}
 | 
			
		||||
  # Custom SSL
 | 
			
		||||
  ssl_certificate /data/custom_ssl/npm-{{ certificate_id }}/fullchain.pem;
 | 
			
		||||
  ssl_certificate_key /data/custom_ssl/npm-{{ certificate_id }}/privkey.pem;
 | 
			
		||||
{%- endif -%}
 | 
			
		||||
{%- endif -%}
 | 
			
		||||
@@ -22,5 +22,7 @@ server {
 | 
			
		||||
  }
 | 
			
		||||
{% endif %}
 | 
			
		||||
 | 
			
		||||
  # Custom
 | 
			
		||||
  include /data/nginx/custom/server_dead[.]conf;
 | 
			
		||||
}
 | 
			
		||||
{% endif %}
 | 
			
		||||
 
 | 
			
		||||
@@ -5,12 +5,10 @@
 | 
			
		||||
{% if enabled %}
 | 
			
		||||
{% if tcp_forwarding == 1 or tcp_forwarding == true -%}
 | 
			
		||||
server {
 | 
			
		||||
  listen {{ incoming_port }};
 | 
			
		||||
{% if ipv6 -%}
 | 
			
		||||
  listen [::]:{{ incoming_port }};
 | 
			
		||||
{% else -%}
 | 
			
		||||
  #listen [::]:{{ incoming_port }};
 | 
			
		||||
{% endif %}
 | 
			
		||||
  listen {{ incoming_port }} {%- if certificate %} ssl {%- endif %};
 | 
			
		||||
  {% unless ipv6 -%} # {%- endunless -%} listen [::]:{{ incoming_port }} {%- if certificate %} ssl {%- endif %};
 | 
			
		||||
 | 
			
		||||
  {%- include "_certificates_stream.conf" %}
 | 
			
		||||
 | 
			
		||||
  proxy_pass {{ forwarding_host }}:{{ forwarding_port }};
 | 
			
		||||
 | 
			
		||||
@@ -19,14 +17,12 @@ server {
 | 
			
		||||
  include /data/nginx/custom/server_stream_tcp[.]conf;
 | 
			
		||||
}
 | 
			
		||||
{% endif %}
 | 
			
		||||
{% if udp_forwarding == 1 or udp_forwarding == true %}
 | 
			
		||||
 | 
			
		||||
{% 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 %}
 | 
			
		||||
  {% unless ipv6 -%} # {%- endunless -%} listen [::]:{{ incoming_port }} udp;
 | 
			
		||||
 | 
			
		||||
  proxy_pass {{ forwarding_host }}:{{ forwarding_port }};
 | 
			
		||||
 | 
			
		||||
  # Custom
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user