prune media before gotosocial backup, fix try_files on piped frontend in container
This commit is contained in:
parent
83baffbb8b
commit
13d55d7293
|
@ -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" = {
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in a new issue