From 184b04b3b5af41de94bc512de7d3d5bc06d617bf Mon Sep 17 00:00:00 2001 From: aptalca Date: Wed, 26 Jan 2022 11:28:57 -0500 Subject: [PATCH] add auth options to php location --- root/dashboard/dashboard.subdomain.conf.sample | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/root/dashboard/dashboard.subdomain.conf.sample b/root/dashboard/dashboard.subdomain.conf.sample index ad7730c..127ef29 100644 --- a/root/dashboard/dashboard.subdomain.conf.sample +++ b/root/dashboard/dashboard.subdomain.conf.sample @@ -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;