S3 garage cluster

This commit is contained in:
Filippo Berto 2023-04-10 01:00:13 +02:00
parent 90b6180bc1
commit 95911b5e64
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
4 changed files with 48 additions and 34 deletions

View file

@ -1,16 +1,22 @@
{ config, ... }: {
{ config, pkgs, ... }: {
users.groups.garage = { };
users.users.garage = {
isSystemUser = true;
group = "garage";
};
networking.firewall.interfaces."ztmjfdwjkp".allowedTCPPorts = [
3901
];
services.garage = {
package = pkgs.unstable_pkgs.garage;
enable = true;
settings = {
db_engine = "lmdb";
replication_mode = 1;
# rpc_secret = "1cd018fba0fe414cc179348ca4ccdda9811ab3ba5dd50bd3ffe31639e3b268d6";
rpc_secret_file = config.age.secrets.garage_rpc_secret.path;
rpc_bind_addr = "[::]:3901";
bootstrap_peers = [
# "<key>@loki.local:3901"
# "b84c2bc806c004a6d88b3bec92ce50916f150aa26278317b71bdba5b173a0a58@thor.local:3901"
];
bootstrap_peers = [ ];
s3_api = {
api_bind_addr = "[::]:3900";