From 353522d5ee300da9602f8cea30bde1b49e142cf7 Mon Sep 17 00:00:00 2001 From: CherryKitten Date: Thu, 18 Jul 2024 13:50:52 +0200 Subject: [PATCH] change gts back to local storage --- hosts/ocelot/default.nix | 2 ++ hosts/ocelot/gotosocial.nix | 9 ++------- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/hosts/ocelot/default.nix b/hosts/ocelot/default.nix index d38c790..5cd99ed 100644 --- a/hosts/ocelot/default.nix +++ b/hosts/ocelot/default.nix @@ -5,6 +5,8 @@ ./website.nix ]; fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; }; + fileSystems."/mnt/gts" = { device = "/dev/sdb1"; fsType = "ext4"; }; + services.restic.backups.default.paths = ["/mnt/gts"]; cherrykitten.backups.enable = true; cherrykitten.network = { public_IPv4 = "128.140.109.125"; diff --git a/hosts/ocelot/gotosocial.nix b/hosts/ocelot/gotosocial.nix index 83aaa74..c499e49 100644 --- a/hosts/ocelot/gotosocial.nix +++ b/hosts/ocelot/gotosocial.nix @@ -5,15 +5,9 @@ let port = 8553; in { - deployment.keys."gts_env" = { - destDir = "/root/keys/"; - keyCommand = [ "pass" "hosts/ocelot/gts/env" ]; - user = "gotosocial"; - }; services.gotosocial = { enable = true; setupPostgresqlDB = true; - environmentFile = "/root/keys/gts_env"; settings = { inherit bind-address host port; application-name = "CherryKitten"; @@ -36,7 +30,8 @@ in statuses-poll-option-max-chars = 150; statuses-media-max-files = 16; - storage-backend = "s3"; + storage-backend = "local"; + storage-local-base-path = "/mnt/gts"; }; };