mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-10-31 15:53:33 +00:00 
			
		
		
		
	Rearrange _location.conf template
Allow more of the main host parameters into the custom location configuration and reorder to make more sense.
This commit is contained in:
		| @@ -1,8 +1,3 @@ | |||||||
| {% include "_assets.conf" %} |  | ||||||
| {% include "_exploits.conf" %} |  | ||||||
| {% include "_hsts.conf" %} |  | ||||||
|  |  | ||||||
|  |  | ||||||
|   location {{ path }} { |   location {{ path }} { | ||||||
|     proxy_set_header Host $host; |     proxy_set_header Host $host; | ||||||
|     proxy_set_header X-Forwarded-Scheme $scheme; |     proxy_set_header X-Forwarded-Scheme $scheme; | ||||||
| @@ -11,7 +6,6 @@ | |||||||
|     proxy_set_header X-Real-IP		$remote_addr; |     proxy_set_header X-Real-IP		$remote_addr; | ||||||
|     proxy_pass       {{ forward_scheme }}://{{ forward_host }}:{{ forward_port }}{{ forward_path }}; |     proxy_pass       {{ forward_scheme }}://{{ forward_host }}:{{ forward_port }}{{ forward_path }}; | ||||||
|  |  | ||||||
|  |  | ||||||
|     {% if access_list_id > 0 %} |     {% if access_list_id > 0 %} | ||||||
|     {% if access_list.items.length > 0 %} |     {% if access_list.items.length > 0 %} | ||||||
|     # Authorization |     # Authorization | ||||||
| @@ -33,6 +27,8 @@ | |||||||
|   |   | ||||||
|     {% endif %} |     {% endif %} | ||||||
|  |  | ||||||
|  |     {% include "_assets.conf" %} | ||||||
|  |     {% include "_exploits.conf" %} | ||||||
|  |  | ||||||
|     {% include "_forced_ssl.conf" %} |     {% include "_forced_ssl.conf" %} | ||||||
|     {% include "_hsts.conf" %} |     {% include "_hsts.conf" %} | ||||||
| @@ -46,3 +42,4 @@ | |||||||
|  |  | ||||||
|     {{ advanced_config }} |     {{ advanced_config }} | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user