add reworked caddy configs from current setup
This commit is contained in:
parent
003cecbbb7
commit
76ec7d0505
23 changed files with 420 additions and 1 deletions
19
.old/etc/caddy/sites-enabled/mailserver
Normal file
19
.old/etc/caddy/sites-enabled/mailserver
Normal 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue