Merge branch 'main' of git.b12f.io:pub-solar/pub.solar
This commit is contained in:
commit
d87d2a9fcf
39
Caddyfile
39
Caddyfile
|
@ -1,39 +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
|
|
||||||
}
|
|
||||||
|
|
||||||
# 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}
|
|
||||||
}
|
|
Loading…
Reference in a new issue