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."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://unix:${pipedSocketForComponent "frontend"}";
|
proxyPass = "http://unix:${pipedSocketForComponent "frontend"}";
|
||||||
};
|
};
|
||||||
|
extraConfig = ''
|
||||||
|
try_files $uri $uri/ /index.html;
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."backend.piped.owo.monster" = {
|
services.nginx.virtualHosts."backend.piped.owo.monster" = {
|
||||||
|
|
|
@ -27,7 +27,13 @@
|
||||||
(db: "postgresqlBackup-${db}"))
|
(db: "postgresqlBackup-${db}"))
|
||||||
} --wait
|
} --wait
|
||||||
|
|
||||||
|
systemctl stop gotosocial
|
||||||
|
|
||||||
${goToSocialAdmin} export --path /var/lib/gotosocial/gts-export.json
|
${goToSocialAdmin} export --path /var/lib/gotosocial/gts-export.json
|
||||||
|
|
||||||
|
${goToSocialAdmin} media prune all
|
||||||
|
|
||||||
|
systemctl start gotosocial
|
||||||
'')
|
'')
|
||||||
}/bin/backupPrepareCommand";
|
}/bin/backupPrepareCommand";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue