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-12 19:40:29 -05:00
|
|
|
"port" => 3001,
|
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
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|