Skip to content

Commit

Permalink
add stalwart
Browse files Browse the repository at this point in the history
Signed-off-by: Simon L <[email protected]>
  • Loading branch information
szaimen committed Dec 4, 2023
1 parent 627027a commit b00222d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,19 @@ https://bw.{\$NC_DOMAIN}:443 {
CADDY
fi

if [ -n "$(dig A +short nextcloud-aio-stalwart)" ] && ! grep -q "mail.$NC_DOMAIN" /Caddyfile; then
cat << CADDY >> /Caddyfile
https://mail.{\$NC_DOMAIN}:443 {
# TLS options
tls {
issuer acme {
disable_http_challenge
}
}
}
CADDY
fi

mkdir -p /data/caddy-imports
if ! grep -q "/data/caddy-imports" /Caddyfile; then
echo 'import /data/caddy-imports/*' >> /Caddyfile
Expand Down

0 comments on commit b00222d

Please sign in to comment.