summaryrefslogtreecommitdiff
path: root/.docker/lighttpd.conf
blob: c8f6f72a2dd26a86785ff954e1f38c954d62730e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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"

$HTTP["host"] != var.intendedHost {
	url.redirect = ( "^/(.*)" => var.intendedHostProto + "://" + var.intendedHost + "/$1" )
}