lighttpd: Update SSL configs
[matthijs/servers/drsnuggles.git] / etc / lighttpd / vhosts / stdout-nl
index 1fbb4e4f1d46e17270144c7ab58aec07b0588f9b..5d6a971630a48f58ab94ffe0aa53a72f7c1183e0 100644 (file)
@@ -10,13 +10,24 @@ $HTTP["host"] =~ ".stdout.nl$" {
                ))
        )
 
-       $HTTP["host"] == "mail.stdout.nl" {
-               # Specify the certificate for this domain (uses SNI)
-               ssl.pemfile = "/etc/lighttpd/ssl/mail.stdout.nl.pem" 
        }
 
        $HTTP["url"] =~ "^/static/tmp/" {
                # Enable dirlistings for /tmp
                server.dir-listing = "enable"
        }
+
+       $HTTP["url"] =~ "^/beef/" {
+               auth.backend                   = "htpasswd"
+               auth.backend.htpasswd.userfile = var.site-dir + "/conf/beef.user"
+
+               auth.require = ( 
+                       "/" => (
+                               "method"  => "basic",
+                               "realm"   => "Beef",
+                               "require" => "valid-user"
+                       )
+               )
+       }
+
 }