diff --git a/hosts/hetzner-vm/containers/piped/piped.nix b/hosts/hetzner-vm/containers/piped/piped.nix index 88b4ada..a8c2ed4 100644 --- a/hosts/hetzner-vm/containers/piped/piped.nix +++ b/hosts/hetzner-vm/containers/piped/piped.nix @@ -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" = { diff --git a/hosts/hetzner-vm/containers/social/profiles/backups.nix b/hosts/hetzner-vm/containers/social/profiles/backups.nix index 2f03f40..4d5346b 100644 --- a/hosts/hetzner-vm/containers/social/profiles/backups.nix +++ b/hosts/hetzner-vm/containers/social/profiles/backups.nix @@ -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";