caddy: fix formatting
This commit is contained in:
parent
d1175e82b4
commit
df79b8a3c9
|
@ -21,45 +21,45 @@
|
||||||
output discard
|
output discard
|
||||||
'';
|
'';
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
# PubSolarOS images
|
# PubSolarOS images
|
||||||
handle /os/download/* {
|
handle /os/download/* {
|
||||||
root * /srv/www
|
root * /srv/www
|
||||||
file_server /os/download/* browse
|
file_server /os/download/* browse
|
||||||
}
|
}
|
||||||
# serve base domain pub.solar for mastodon.pub.solar
|
# serve base domain pub.solar for mastodon.pub.solar
|
||||||
# https://masto.host/mastodon-usernames-different-from-the-domain-used-for-installation/
|
# https://masto.host/mastodon-usernames-different-from-the-domain-used-for-installation/
|
||||||
handle /.well-known/host-meta {
|
handle /.well-known/host-meta {
|
||||||
redir https://mastodon.pub.solar{uri}
|
redir https://mastodon.pub.solar{uri}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Tailscale OIDC requirement
|
# Tailscale OIDC requirement
|
||||||
handle /.well-known/webfinger {
|
handle /.well-known/webfinger {
|
||||||
respond 200 {
|
respond 200 {
|
||||||
body `{
|
body `{
|
||||||
"subject": "acct:admins@pub.solar",
|
"subject": "acct:admins@pub.solar",
|
||||||
"links": [
|
"links": [
|
||||||
{
|
{
|
||||||
"rel": "http://openid.net/specs/connect/1.0/issuer",
|
"rel": "http://openid.net/specs/connect/1.0/issuer",
|
||||||
"href": "https://auth.pub.solar/realms/pub.solar"
|
"href": "https://auth.pub.solar/realms/pub.solar"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}`
|
}`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# redirect to statutes
|
# redirect to statutes
|
||||||
redir /satzung https://cloud.pub.solar/s/2tRCP9aZFCiWxQy temporary
|
redir /satzung https://cloud.pub.solar/s/2tRCP9aZFCiWxQy temporary
|
||||||
|
|
||||||
# pub.solar website
|
# pub.solar website
|
||||||
handle {
|
handle {
|
||||||
root * /srv/www/pub.solar
|
root * /srv/www/pub.solar
|
||||||
try_files {path}.html {path}
|
try_files {path}.html {path}
|
||||||
file_server
|
file_server
|
||||||
}
|
}
|
||||||
# minimal error handling, respond with status code and text
|
# minimal error handling, respond with status code and text
|
||||||
handle_errors {
|
handle_errors {
|
||||||
respond "{http.error.status_code} {http.error.status_text}"
|
respond "{http.error.status_code} {http.error.status_text}"
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
"www.pub.solar" = {
|
"www.pub.solar" = {
|
||||||
|
|
Loading…
Reference in a new issue