thirdculture/etc/lighttpd/conf.d/files.thirdculture.top.conf

26 lines
619 B
Text
Raw Normal View History

2024-07-18 14:09:32 -04:00
$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",
2024-11-13 01:05:42 -05:00
"port" => 8001,
2024-11-12 16:45:42 -05:00
"headers" => (
"Host" => "$HTTP_HOST",
"X-Forwarded-For" => "$REMOTE_ADDR"
)
2024-07-18 14:09:32 -04:00
)
)
)
}