infra: pull in gitea GPG fix from nixos-unstable #175

Merged
teutat3s merged 3 commits from bump/infra-flake-lock into infra 2023-03-05 14:30:07 +00:00
Showing only changes of commit d1175e82b4 - Show all commits

View file

@ -21,30 +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}
} }
# redirect to statutes # Tailscale OIDC requirement
redir /satzung https://cloud.pub.solar/s/2tRCP9aZFCiWxQy temporary handle /.well-known/webfinger {
respond 200 {
body `{
"subject": "acct:admins@pub.solar",
"links": [
{
"rel": "http://openid.net/specs/connect/1.0/issuer",
"href": "https://auth.pub.solar/realms/pub.solar"
}
]
}`
}
}
# pub.solar website # redirect to statutes
handle { redir /satzung https://cloud.pub.solar/s/2tRCP9aZFCiWxQy temporary
root * /srv/www/pub.solar
try_files {path}.html {path} # pub.solar website
file_server handle {
} root * /srv/www/pub.solar
# minimal error handling, respond with status code and text try_files {path}.html {path}
handle_errors { file_server
respond "{http.error.status_code} {http.error.status_text}" }
} # minimal error handling, respond with status code and text
handle_errors {
respond "{http.error.status_code} {http.error.status_text}"
}
''; '';
}; };
"www.pub.solar" = { "www.pub.solar" = {