18 lines
228 B
Caddyfile

{
auto_https off
admin off
http_port 8666
}
:8666 {
reverse_proxy 127.0.0.1:6969
route /whitelist* {
basic_auth /whitelist {
{$WHITELIST_USERNAME} {$WHITELIST_PASSWORD_CADDY}
}
reverse_proxy 127.0.0.1:3001
}
}