change gts back to local storage

This commit is contained in:
CherryKitten 2024-07-18 13:50:52 +02:00
parent 6db3140bf4
commit 353522d5ee
Signed by: sammy
GPG key ID: 98D8F75FB0658276
2 changed files with 4 additions and 7 deletions

View file

@ -5,6 +5,8 @@
./website.nix ./website.nix
]; ];
fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; }; 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.backups.enable = true;
cherrykitten.network = { cherrykitten.network = {
public_IPv4 = "128.140.109.125"; public_IPv4 = "128.140.109.125";

View file

@ -5,15 +5,9 @@ let
port = 8553; port = 8553;
in in
{ {
deployment.keys."gts_env" = {
destDir = "/root/keys/";
keyCommand = [ "pass" "hosts/ocelot/gts/env" ];
user = "gotosocial";
};
services.gotosocial = { services.gotosocial = {
enable = true; enable = true;
setupPostgresqlDB = true; setupPostgresqlDB = true;
environmentFile = "/root/keys/gts_env";
settings = { settings = {
inherit bind-address host port; inherit bind-address host port;
application-name = "CherryKitten"; application-name = "CherryKitten";
@ -36,7 +30,8 @@ in
statuses-poll-option-max-chars = 150; statuses-poll-option-max-chars = 150;
statuses-media-max-files = 16; statuses-media-max-files = 16;
storage-backend = "s3"; storage-backend = "local";
storage-local-base-path = "/mnt/gts";
}; };
}; };