feat: deploy garage on public-cof
This commit is contained in:
parent
570071bb71
commit
e827b28967
2 changed files with 28 additions and 1 deletions
|
@ -9,6 +9,7 @@
|
|||
./acme.nix
|
||||
./networking.nix
|
||||
./monitoring.nix
|
||||
./garage.nix
|
||||
./nextcloud.nix
|
||||
./minecraft.nix
|
||||
# ./rstudio-server
|
||||
|
@ -17,7 +18,7 @@
|
|||
./nginx.nix
|
||||
# ./cryptpad.nix
|
||||
./hedgedoc.nix
|
||||
./kanboard.nix
|
||||
# ./kanboard.nix
|
||||
./secrets
|
||||
./v6proxy
|
||||
# TODO monitoring
|
||||
|
|
26
machines/public-cof/garage.nix
Normal file
26
machines/public-cof/garage.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
services.garage = {
|
||||
enable = true;
|
||||
settings = {
|
||||
replication_mode = "none";
|
||||
compression_level = 7;
|
||||
|
||||
rpc_bind_addr = "10.1.1.21:3901";
|
||||
rpc_public_addr = "10.1.1.21:3901";
|
||||
rpc_secret = "76c2746530a4a27d188530a6bbf6c4613ccb8d8f129863d8c21462b84d5b998f";
|
||||
|
||||
s3_api = {
|
||||
s3_region = "ens";
|
||||
api_bind_addr = "[::]:3900";
|
||||
root_domain = ".s3.rz.ens.wtf";
|
||||
};
|
||||
|
||||
s3_web = {
|
||||
bind_addr = "[::]:3902";
|
||||
root_domain = ".cdn.rz.ens.wtf";
|
||||
index = "index.html";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue