caddy: fmt, improve comments
parent
2f49b8846c
commit
52fb611275
22
Caddyfile
22
Caddyfile
|
@ -1,9 +1,17 @@
|
||||||
|
# global options
|
||||||
{
|
{
|
||||||
# acme_ca https://acme-staging-v02.api.letsencrypt.org/directory
|
# remove comment to use staging Let's Encrypt servers (for testing)
|
||||||
# no logging policy, don't log anything
|
# acme_ca https://acme-staging-v02.api.letsencrypt.org/directory
|
||||||
log {
|
|
||||||
output discard
|
# 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
|
# static file server
|
||||||
|
@ -11,4 +19,8 @@ miom.space {
|
||||||
root * /srv/miom.space
|
root * /srv/miom.space
|
||||||
file_server
|
file_server
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# redirect www. subdomain to apex (root) domain
|
||||||
|
www.miom.space {
|
||||||
|
redir https://miom.space{uri}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue