2022-01-16 21:05:02 +00:00
|
|
|
# global options
|
2021-10-22 11:13:16 +00:00
|
|
|
{
|
2022-01-16 21:05:02 +00:00
|
|
|
# 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
|
|
|
|
}
|
2021-10-22 11:13:16 +00:00
|
|
|
}
|
|
|
|
|
2022-01-16 21:04:02 +00:00
|
|
|
# static file server
|
2021-10-22 16:06:11 +00:00
|
|
|
miom.space {
|
2022-01-16 21:04:02 +00:00
|
|
|
root * /srv/miom.space
|
|
|
|
file_server
|
|
|
|
}
|
2022-01-16 21:05:02 +00:00
|
|
|
|
|
|
|
# redirect www. subdomain to apex (root) domain
|
|
|
|
www.miom.space {
|
|
|
|
redir https://miom.space{uri}
|
2021-10-22 11:13:16 +00:00
|
|
|
}
|