put grafana and esp behind basic auth

This commit is contained in:
2024-12-22 19:23:03 +01:00
parent 89f726317b
commit 02495dde81

View File

@@ -17,8 +17,21 @@ herderin.veenboer.xyz \
peter.veenboer.xyz {
reverse_proxy nginx
}
import unprotected esp host:6052
import unprotected grafana host:3333
import unprotected ha host:8123
(protected) {
{args[0]}.{$SUBDOMAIN}.{$DOMAIN} {
log {
output file /var/log/{args[0]}.log
}
basic_auth {
user $2a$14$iNMen9TulKubYW8iXz5nFO./gQm0BzkaASYdhc48mSSGIc8GA4bxG
}
reverse_proxy {args[1]}
}
}
import protected esp host:6052
import protected grafana host:3333
import sites/auth.caddy