prune media before gotosocial backup, fix try_files on piped frontend in container

This commit is contained in:
chaos 2023-09-04 18:09:16 +01:00
parent 83baffbb8b
commit 13d55d7293
No known key found for this signature in database
2 changed files with 9 additions and 0 deletions

View file

@ -105,6 +105,9 @@ in {
locations."/" = {
proxyPass = "http://unix:${pipedSocketForComponent "frontend"}";
};
extraConfig = ''
try_files $uri $uri/ /index.html;
'';
};
services.nginx.virtualHosts."backend.piped.owo.monster" = {

View file

@ -27,7 +27,13 @@
(db: "postgresqlBackup-${db}"))
} --wait
systemctl stop gotosocial
${goToSocialAdmin} export --path /var/lib/gotosocial/gts-export.json
${goToSocialAdmin} media prune all
systemctl start gotosocial
'')
}/bin/backupPrepareCommand";