Encode logs/admin password automatically.
This commit is contained in:
@@ -15,6 +15,9 @@ set -e
|
||||
|
||||
. apps.config
|
||||
|
||||
host_admin_password_encoded=`echo "$HOST_ADMIN_PASSWORD" | sudo docker run --rm -i caddy:2 caddy hash-password`
|
||||
|
||||
|
||||
read -r -a APP_CONFIGS <<< "$APP_CONFIGS"
|
||||
APP_CONFIGS+=('lb,root')
|
||||
|
||||
@@ -22,7 +25,13 @@ APP_CONFIGS+=('lb,root')
|
||||
declare -A bodys
|
||||
bodys["nextcloud"]=" reverse_proxy http://nextcloud:80"
|
||||
bodys["wg-easy"]=" reverse_proxy http://wg-easy:80"
|
||||
bodys["dozzle"]=" reverse_proxy http://dozzle:8080"
|
||||
bodys["dozzle"]=$(cat <<EOF
|
||||
basic_auth {
|
||||
$HOST_ADMIN_USER $host_admin_password_encoded
|
||||
}
|
||||
reverse_proxy http://dozzle:8080
|
||||
EOF
|
||||
)
|
||||
bodys["lb"]=" reverse_proxy http://nginx:80"
|
||||
|
||||
for config_string in ${APP_CONFIGS[@]}; do
|
||||
|
||||
Reference in New Issue
Block a user