27 lines
672 B
Caddyfile
27 lines
672 B
Caddyfile
# global options
|
|
{
|
|
# remove comment to use staging Let's Encrypt servers (for testing)
|
|
# acme_ca https://acme-staging-v02.api.letsencrypt.org/directory
|
|
|
|
# auto_https contact mail address, for TLS certs notifications (expiry,
|
|
# other problems with certs)
|
|
email admins@pub.solar
|
|
|
|
# default to no-logs-policy, don't log anything
|
|
# comment this block out for debugging
|
|
log {
|
|
output discard
|
|
}
|
|
}
|
|
|
|
# static file server
|
|
miom.space {
|
|
root * /srv/miom.space
|
|
file_server
|
|
}
|
|
|
|
# redirect www. subdomain to apex (root) domain
|
|
www.miom.space {
|
|
redir https://miom.space{uri}
|
|
}
|