sites

Source for the daat.foo sites
git clone https://git.daat.foo/sites.git
Log | Files | Refs | Submodules

lighttpd.conf (768B)


      1 $HTTP["host"] == "inv.daat.foo" {
      2     ssl.pemfile = "/etc/lighttpd/certs/inv.daat.foo/fullchain.pem"
      3     ssl.privkey = "/etc/lighttpd/certs/inv.daat.foo/privkey.pem"
      4 
      5     $HTTP["scheme"] == "https" {
      6         auth.backend = "htpasswd"
      7         auth.backend.htpasswd.userfile = "/etc/lighttpd/auth/searxng.htpasswd"
      8         auth.require = (
      9             "" => (
     10                 "method" => "basic",
     11                 "realm" => "daat video",
     12                 "require" => "valid-user"
     13             )
     14         )
     15         proxy.server = (
     16             "" => (( "host" => "127.0.0.1", "port" => 8300 ))
     17         )
     18     }
     19 
     20     $HTTP["scheme"] == "http" {
     21         $HTTP["url"] !~ "^/[.]well-known/acme-challenge/[A-Za-z0-9_-]+$" {
     22             url.access-deny = ( "" )
     23         }
     24     }
     25 }