pub.solar now lives on flora-6

359a82a28e/hosts/flora-6/caddy.nix (L19)
pull/6/head
teutat3s 2023-02-27 20:30:53 +01:00
parent a3e50d8b5e
commit a1e2db0d3b
Signed by: teutat3s
GPG Key ID: 18DAE600A6BBE705
1 changed files with 0 additions and 44 deletions

View File

@ -1,44 +0,0 @@
# Caddy's configuration file
# see: https://caddyserver.com/docs/caddyfile
{
email admins@pub.solar
}
pub.solar {
# Uncomment for debugging
#log {
# output stderr
#}
# PubSolarOS images
handle /os/download/* {
root * /srv
file_server /os/download/* browse
}
# Statutes
handle /satzung {
redir https://cloud.pub.solar/s/2KErtaYeLn5d6MZ
}
# serve base domain pub.solar for mastodon.pub.solar
# https://masto.host/mastodon-usernames-different-from-the-domain-used-for-installation/
handle /.well-known/host-meta {
redir https://mastodon.pub.solar{uri}
}
# pub.solar website
handle {
root * /srv/pub.solar
try_files {path}.html {path}
file_server
}
handle_errors {
respond "{http.error.status_code} {http.error.status_text}"
}
}
www.pub.solar {
redir https://pub.solar{uri}
}