put grafana and esp behind basic auth
This commit is contained in:
@@ -17,8 +17,21 @@ herderin.veenboer.xyz \
|
|||||||
peter.veenboer.xyz {
|
peter.veenboer.xyz {
|
||||||
reverse_proxy nginx
|
reverse_proxy nginx
|
||||||
}
|
}
|
||||||
import unprotected esp host:6052
|
|
||||||
import unprotected grafana host:3333
|
|
||||||
import unprotected ha host:8123
|
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
|
import sites/auth.caddy
|
||||||
|
|||||||
Reference in New Issue
Block a user