diff --git a/start.sh b/start.sh index 1ad3cd0..3e7b034 100644 --- a/start.sh +++ b/start.sh @@ -63,6 +63,22 @@ https://mail.{\$NC_DOMAIN}:443 { CADDY fi +if [ -n "$(dig A +short nextcloud-aio-vaultwarden)" ] && ! grep -q nextcloud-aio-lldap /Caddyfile; then + cat << CADDY >> /Caddyfile +https://ldap.{\$NC_DOMAIN}:443 { + # import GEOFILTER + reverse_proxy nextcloud-aio-lldap:17170 + + # TLS options + tls { + issuer acme { + disable_http_challenge + } + } +} +CADDY +fi + if nc -z host.docker.internal 8096 && ! grep -q "host.docker.internal:8096" /Caddyfile; then cat << CADDY >> /Caddyfile https://media.{\$NC_DOMAIN}:443 {