S3 garage cluster
This commit is contained in:
parent
90b6180bc1
commit
95911b5e64
4 changed files with 48 additions and 34 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue