Garage on loki
This commit is contained in:
parent
d5fbab32bc
commit
90b6180bc1
11 changed files with 183 additions and 31 deletions
34
nixos_modules/garage.nix
Normal file
34
nixos_modules/garage.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ config, ... }: {
|
||||
services.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"
|
||||
];
|
||||
|
||||
s3_api = {
|
||||
api_bind_addr = "[::]:3900";
|
||||
s3_region = "garage";
|
||||
root_domain = ".s3.bertof.net";
|
||||
};
|
||||
|
||||
s3_web = {
|
||||
bind_addr = "[::]:3902";
|
||||
root_domain = ".web.bertof.net";
|
||||
};
|
||||
|
||||
admin = {
|
||||
api_bind_addr = "0.0.0.0:3903";
|
||||
# metrics_token = "72ad105afc44f30c189b2505f5583d3ea9be26a3e0a4730d48381b1ae4b70074";
|
||||
# admin_token = "05bf164fe1ce3ecc1dff8fb1e5b237331d24b109792be714738fa92b2d14213d";
|
||||
# trace_sink = "http://localhost:4317";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue