Merge pull request 'chore: add Mastodon maintenance page' (#259) from chore/mastodon-maintenance into infra
All checks were successful
continuous-integration/drone/push Build is passing

Reviewed-on: #259
Reviewed-by: hensoko <hensoko@gssws.de>
This commit is contained in:
hensoko 2023-10-27 23:12:47 +02:00
commit d5670ac8d2
Signed by: pub.solar gitea
GPG key ID: F0332B04B7054873

View file

@ -4,7 +4,24 @@
pkgs,
self,
...
}: {
}: let
maintenanceMode = {
logFormat = lib.mkForce ''
output discard
'';
extraConfig = ''
root * /srv/www/pub.solar
error * "Scheduled Maintenance" 503
handle_errors {
root * /srv/www/pub.solar
rewrite * /maintenance/index.html
file_server
}
'';
};
in {
systemd.tmpfiles.rules = [
"d '/data/srv/www/os/download/' 0750 hakkonaut hakkonaut - -"
];
@ -79,6 +96,9 @@
redir https://pub.solar{uri}
'';
};
"mastodon.pub.solar" = maintenanceMode;
"auth.pub.solar" = {
logFormat = lib.mkForce ''
output discard