summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
Diffstat (limited to 'docker')
-rw-r--r--docker/lighttpd.conf12
1 files changed, 11 insertions, 1 deletions
diff --git a/docker/lighttpd.conf b/docker/lighttpd.conf
index 850af409..ac92070d 100644
--- a/docker/lighttpd.conf
+++ b/docker/lighttpd.conf
@@ -14,4 +14,14 @@ mimetype.assign = (
static-file.exclude-extensions = ( ".fcgi", ".php", ".rb", "~", ".inc", ".cgi" )
index-file.names = ( "index.html" )
-
+server.modules += ( "mod_auth" )
+auth.debug = 2
+auth.backend = "plain"
+auth.backend.plain.userfile = "/etc/lighttpd/authorization"
+auth.require = ( "/" =>
+(
+"method" => "basic",
+"realm" => "Password protected area",
+"require" => "valid-user"
+)
+)