add reworked caddy configs from current setup

This commit is contained in:
Ruben 2025-07-12 00:09:31 -05:00
commit 76ec7d0505
No known key found for this signature in database
GPG key ID: 8EA836555FB6D9A5
23 changed files with 420 additions and 1 deletions

View file

@ -0,0 +1,19 @@
# caddy won't actually handle mail (in terms of reverse proxy, etc), it's simply here so caddy can generate certificates for us
# that will be reused for the mailserver
# we use a daily cronjob to copy the certificates to the proper location because by default they're stored somewhere else
# that literally Nobody (except root) but caddy can access
mx1.synth.download {
# Optional, can be useful for troubleshooting
# connection to Caddy with correct certificate:
respond "Hello DMS"
}
# mta-sts stuff
mta-sts.synth.download {
root * /var/www/mta-sts
file_server
import common-settings
import log mta-sts
import robots-txt
}