mirror of
https://github.com/linuxserver/docker-mods.git
synced 2026-02-05 13:08:12 +08:00
add auth options to php location
This commit is contained in:
parent
af51681e89
commit
184b04b3b5
@ -40,6 +40,17 @@ server {
|
||||
try_files $uri $uri/ /index.php?$args =404;
|
||||
}
|
||||
location ~ \.php$ {
|
||||
# enable the next two lines for http auth
|
||||
#auth_basic "Restricted";
|
||||
#auth_basic_user_file /config/nginx/.htpasswd;
|
||||
|
||||
# enable the next two lines for ldap auth
|
||||
#auth_request /auth;
|
||||
#error_page 401 =200 /ldaplogin;
|
||||
|
||||
# enable for Authelia
|
||||
#include /config/nginx/authelia-location.conf;
|
||||
|
||||
allow 10.0.0.0/8;
|
||||
allow 172.16.0.0/12;
|
||||
allow 192.168.0.0/16;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user