Revert "Temporarily revert "helm chart - allow to add additional trusted domain""

This commit is contained in:
Simon L
2024-02-01 13:25:22 +01:00
committed by GitHub
parent 99d3bb9831
commit 5491527921
7 changed files with 28 additions and 2 deletions

View File

@@ -14,6 +14,7 @@
}
}
https://{$ADDITIONAL_TRUSTED_DOMAIN}:443,
{$PROTOCOL}://{$NC_DOMAIN}:{$APACHE_PORT} {
# Collabora

View File

@@ -51,6 +51,12 @@ else
fi
echo "$CADDYFILE" > /tmp/Caddyfile
# Remove additional domain if not given
if [ -z "$ADDITIONAL_TRUSTED_DOMAIN" ]; then
CADDYFILE="$(sed '/ADDITIONAL_TRUSTED_DOMAIN/d' /tmp/Caddyfile)"
fi
echo "$CADDYFILE" > /tmp/Caddyfile
# Fix the Caddyfile format
caddy fmt --overwrite /tmp/Caddyfile