Skip to content

Commit

Permalink
Update start.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Yves <7360784+docjyJ@users.noreply.github.com>
  • Loading branch information
docjyJ authored Mar 29, 2024
1 parent 94d0fd7 commit 1f127c9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1f127c9

Please sign in to comment.