From b22190416684e8ed57aa380c89083985eb0d9a4b Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Sat, 22 May 2021 10:06:01 +0200 Subject: Move some hidden stuff to the src dir --- .docker/lighttpd.conf | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 .docker/lighttpd.conf (limited to '.docker/lighttpd.conf') diff --git a/.docker/lighttpd.conf b/.docker/lighttpd.conf deleted file mode 100644 index 1b480ca..0000000 --- a/.docker/lighttpd.conf +++ /dev/null @@ -1,29 +0,0 @@ -server.modules += ( - "mod_setenv", - "mod_redirect", -) - -setenv.add-response-header = ( - "Content-Security-Policy" => "default-src 'self'; img-src https:; object-src 'self'; script-src 'self'; style-src 'self'", - "Referrer-Policy" => "no-referrer", - "X-Content-Type-Options" => "nosniff", - "X-Frame-Options" => "SAMEORIGIN", - "X-Permitted-Cross-Domain-Policies" => "none", - "X-XSS-Protection" => "1; mode=block", -) - -include_shell "/usr/local/bin/lighttpd-env.sh" - -# Redirect to the "official" domain -$HTTP["host"] != var.intendedHost { - $HTTP["url"] !~ "^/.well-known" { - url.redirect = ( "^/(.*)" => var.intendedHostProto + "://" + var.intendedHost + "/$1" ) - } -} - -# Add CORS header for WKP -$HTTP["url"] =~ "^/.well-known/openpgpkey" { - setenv.add-response-header = ( - "Access-Control-Allow-Origin" => "*", - ) -} -- cgit v1.1