chore: add Mastodon maintenance page
Depends on pub-solar/pub.solar#15 being merged and deployed.
This commit is contained in:
parent
0691f3b4c7
commit
dd9af147c7
|
@ -4,7 +4,24 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
self,
|
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 = [
|
systemd.tmpfiles.rules = [
|
||||||
"d '/data/srv/www/os/download/' 0750 hakkonaut hakkonaut - -"
|
"d '/data/srv/www/os/download/' 0750 hakkonaut hakkonaut - -"
|
||||||
];
|
];
|
||||||
|
@ -79,6 +96,9 @@
|
||||||
redir https://pub.solar{uri}
|
redir https://pub.solar{uri}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"mastodon.pub.solar" = maintenanceMode;
|
||||||
|
|
||||||
"auth.pub.solar" = {
|
"auth.pub.solar" = {
|
||||||
logFormat = lib.mkForce ''
|
logFormat = lib.mkForce ''
|
||||||
output discard
|
output discard
|
||||||
|
|
Loading…
Reference in a new issue