thirdculture/etc/lighttpd/conf.d/files.thirdculture.top.conf
2024-11-13 01:05:42 -05:00

25 lines
619 B
Text

$HTTP["host"] =~ "^files\.thirdculture\.top$" {
auth.backend = "htpasswd"
auth.backend.htpasswd.userfile = "/etc/lighttpd/.htpasswd"
auth.require = ( "" =>
(
"method" => "basic",
"realm" => "Password protected area",
"require" => "valid-user"
)
)
proxy.server = (
"" => (
(
"host" => "gossa",
"port" => 8001,
"headers" => (
"Host" => "$HTTP_HOST",
"X-Forwarded-For" => "$REMOTE_ADDR"
)
)
)
)
}