From 52fb611275038a29ffe83c11a1d547fbf8f6fa92 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Sun, 16 Jan 2022 22:05:02 +0100 Subject: [PATCH] caddy: fmt, improve comments --- Caddyfile | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/Caddyfile b/Caddyfile index dd3c88f..57c6b55 100644 --- a/Caddyfile +++ b/Caddyfile @@ -1,9 +1,17 @@ +# global options { - # acme_ca https://acme-staging-v02.api.letsencrypt.org/directory - # no logging policy, don't log anything - log { - output discard - } + # 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 @@ -11,4 +19,8 @@ miom.space { root * /srv/miom.space file_server } + +# redirect www. subdomain to apex (root) domain +www.miom.space { + redir https://miom.space{uri} }