mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-10-31 15:53:33 +00:00 
			
		
		
		
	the pass_auth and satisfy_any properties and now boolean true/false, they do not == 1 so the switching in this template breaks
		
			
				
	
	
		
			26 lines
		
	
	
		
			700 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			700 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| {% if access_list_id > 0 %}
 | |
|     {% if access_list.items.length > 0 %}
 | |
|     # Authorization
 | |
|     auth_basic            "Authorization required";
 | |
|     auth_basic_user_file  /data/access/{{ access_list_id }};
 | |
| 
 | |
|     {% if access_list.pass_auth == 0 or access_list.pass_auth == true %}
 | |
|     proxy_set_header Authorization "";
 | |
|     {% endif %}
 | |
| 
 | |
|     {% endif %}
 | |
| 
 | |
|     # Access Rules: {{ access_list.clients | size }} total
 | |
|     {% for client in access_list.clients %}
 | |
|     {{client | nginxAccessRule}}
 | |
|     {% endfor %}
 | |
|     deny all;
 | |
| 
 | |
|     # Access checks must...
 | |
|     {% if access_list.satisfy_any == 1 or access_list.satisfy_any == true %}
 | |
|     satisfy any;
 | |
|     {% else %}
 | |
|     satisfy all;
 | |
|     {% endif %}
 | |
| {% endif %}
 |