garage and forgejo fixes

This commit is contained in:
waveringana 2025-07-07 08:36:13 -04:00
parent 0e5513da86
commit 5536af3b94
3 changed files with 12 additions and 11 deletions

View file

@ -37,8 +37,9 @@ in
SSH_LISTEN_PORT = 2222;
SSH_PORT = 2222;
START_SSH_SERVER = true;
SSH_DOMAIN = "sgit.nekomimi.pet";
};
# service.DISABLE_REGISTRATION = true;
service.DISABLE_REGISTRATION = true;
actions = {
ENABLED = true;
DEFAULT_ACTIONS_URL = "github";
@ -46,4 +47,4 @@ in
};
};
};
}
}

View file

@ -16,12 +16,12 @@ in
config = mkIf cfg.enable {
services.garage = {
enable = true;
package = pkgs.garage;
package = pkgs.garage_2;
settings = {
metadata_dir = "/garage/metadata";
data_dir = "/garage/data";
db_engine = "lmdb";
replication_mode = "2";
replication_factor = 2;
rpc_bind_addr = "[::]:3901";
rpc_public_addr = "${config.networking.hostName}:3901";
rpc_secret_file = config.age.secrets."garage-rpc-secret".path;
@ -41,8 +41,8 @@ in
metrics_token_file = config.age.secrets."garage-metrics-token".path;
};
bootstrap_peers = [
"d548d0c9ae9aec9e26fe0bd2ca3efe75f654fa350bad5cb02bc9aebc9850ba8f@[2a04:52c0:135:48d1::2]:3901" # buer
"5504cb25910dcef4a4312006691d651c099cde7c3a88df9ca79aa350571e6e65@[2601:5c2:8400:26c0:4ecc:6aff:fef7:98ca]:3901" #valefar
"d548d0c9ae9aec9e26fe0bd2ca3efe75f654fa350bad5cb02bc9aebc9850ba8f@[buer]:3901"
"5504cb25910dcef4a4312006691d651c099cde7c3a88df9ca79aa350571e6e65@[valefar]:3901"
];
};
};