mirror of
				https://github.com/linuxserver/docker-heimdall.git
				synced 2025-10-31 13:07:39 +09:00 
			
		
		
		
	fix if statement logic
This commit is contained in:
		| @@ -15,21 +15,20 @@ server { | |||||||
|  |  | ||||||
| 	client_max_body_size 0; | 	client_max_body_size 0; | ||||||
| 	 | 	 | ||||||
| 	if (-f /config/nginx/.htpasswd) { |         error_page 599 = @noauth; | ||||||
| 		return 599; |  | ||||||
| 	} |  | ||||||
|  |  | ||||||
| 	location / { |         location / { | ||||||
| 		try_files $uri $uri/ /index.php?$args; |                 if (!-f /config/nginx/.htpasswd) { | ||||||
| 	} |                         return 599; | ||||||
|  |                 } | ||||||
|  |                 auth_basic "Restricted"; | ||||||
|  |                 auth_basic_user_file /config/nginx/.htpasswd; | ||||||
|  |                 try_files $uri $uri/ /index.php?$args; | ||||||
|  |         } | ||||||
|  |  | ||||||
| 	error_page 599 = @htpasswd; |         location @noauth { | ||||||
| 	 |                 try_files $uri $uri/ /index.php?$args; | ||||||
| 	location @htpasswd { |         } | ||||||
| 		auth_basic "Restricted"; |  | ||||||
| 		auth_basic_user_file /config/nginx/.htpasswd; |  | ||||||
| 		try_files $uri $uri/ /index.php?$args; |  | ||||||
| 	} |  | ||||||
|  |  | ||||||
| 	location ~ \.php$ { | 	location ~ \.php$ { | ||||||
| 		fastcgi_split_path_info ^(.+\.php)(/.+)$; | 		fastcgi_split_path_info ^(.+\.php)(/.+)$; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user