Add minio

This commit is contained in:
Charlotte 🦝 Delenk 2022-01-16 17:44:30 +01:00
parent 1faa336925
commit 32339aa392
Signed by: darkkirb
GPG key ID: 015E3768A70AFBC5
6 changed files with 26 additions and 5 deletions

View file

@ -4,5 +4,6 @@
./services/nginx.nix
./services/acme.nix
./services/fail2ban.nix
./services/minio.nix
];
}

View file

@ -0,0 +1,9 @@
{ ... }: {
services.minio = {
enable = true;
rootCredentialsFile = "/run/secrets/security/minio/credentials_file";
};
services.prometheus.exporters.minio = {
enable = true;
};
}

View file

@ -27,6 +27,14 @@
];
}];
}
{
job_name = "minio_exporter";
static_configs = [{
targets = [
"${config.services.prometheus.exporters.minio.listenAddress}:${toString config.services.prometheus.exporters.minio.port}"
];
}];
}
];
};
}

View file

@ -5,4 +5,5 @@
sops.secrets."network/wireguard/privkey" = { };
sops.secrets."security/acme/dns" = { };
sops.secrets."security/restic/password" = { };
sops.secrets."security/minio/credentials_file" = { };
}

View file

@ -22,11 +22,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1642239678,
"narHash": "sha256-dyYnB+/0ZzzbLgieaSN5HxQ1DwKwk+3mwHjSi883b8Y=",
"lastModified": 1642323669,
"narHash": "sha256-BiSAPmmg9nAT82WjEeI2AUJyC6Fd2BuexwJdnGaOXOA=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "22a2be05ea9f9563f4a4eadb670a1e38adecd1ca",
"rev": "f0996f2d22216c9468205b1ae207d89bfa48fd8e",
"type": "github"
},
"original": {

View file

@ -6,6 +6,8 @@ security:
dns: ENC[AES256_GCM,data:BxBOnnQZLgs9Y6VSL5umzCHmvQTgxDyTRftnR7zbzARJXaRQP5tnUyZFB4oBhO5d/s4TUEwXhSbbdjBttEuI1drh8X2iNTnWtKaSx7TPFhJJXD0jN4eOSgEyZ0GQYieLCYilpiMOgpkTnSdsFkKkQylCsRcu6eXAgtvZYVg/c9SxnNgT7syC2C+VqsgkhYdrHdtguoGigpyfQ3wA4hOABjDipYGw46NHCx1jPAi1mw2txg04/GCCCggvwV6b/EQZ2rA8bBKM2Stw4wYZXvU7V+XaNZngt1vxBSR4OqU=,iv:Gw3mM1G89NdddGdiCrxuOfChudsIXEvABpoSysQfXp0=,tag:2I9lq1h37OhFEflkaj5/BQ==,type:str]
restic:
password: ENC[AES256_GCM,data:tjdAanBeEtMm6EA4xLH0d1XbCk4=,iv:PXwy9Cm+iT0i4UpNrNEZUpAdpuvqYkdSoLMkWeiXLWE=,tag:G3Fosmuva0/BYQ1VEn0pQQ==,type:str]
minio:
credentials_file: ENC[AES256_GCM,data:ZmdxboXeY7cbQ5b9h5JKO4uewTZC8XCbg9T8KvCA9afjwWjruuoHZ/LcXgEphdwuBB6CpcRqMze+21fT16svqUgLgVcCRLmtx7E=,iv:s2b4KtQM1fkMVxAAGD5sSOkum9Lhcy1khV8GabbhFXQ=,tag:aHL4SUuOwzU5V9Wz6otS0g==,type:str]
sops:
kms: []
gcp_kms: []
@ -30,8 +32,8 @@ sops:
QkkzbUVrVWtYMWhLa0N5MzJ2KzV4MW8KEAtd2cnwNH01rYUFr+qWyAhHvUsqsxXg
not2RQLEIGbo80Z7CMIwqCIpUYOL4m70KlEKrFzflXFbOFX2en82iA==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2022-01-15T17:02:43Z"
mac: ENC[AES256_GCM,data:f51zbRiXCDdCQVhBv8o3yGlPdIkNGpKXb7KyhNsVv9IB9Abop4H/MdUKmhMo8e+g7Gw4cpVU8joliqOLU/mikqvh3VsSWVIMmKF/1oflrvWJijmKVv0z8FBm931Y2pF9JElFAjDNHDhfHNN9aTK3uy+eVd1wPiL2B4AI5g5iGYQ=,iv:ccLhSDJp19vuvbPxY6Ga66zcPIUzNRPkKJ0zXvthsuk=,tag:QxtK+yTVtucXWquhXYfnuw==,type:str]
lastmodified: "2022-01-16T16:40:32Z"
mac: ENC[AES256_GCM,data:wUL+sbs24MeAMgDTrIyizuAyyR0CtQRK7kHgBcsBzghZUGNtuZhqZQNw11XPDI2v3sqNlnpcNRiU+p8Srg2qgYW1DqKi8CnNkn3xoL14X+Ku/3JKQW00Sd2rDJzyQ1mMpimD4+G5dOOYxXEH2n0yPuYbfwxtxMH2Z+NM2TF5e94=,iv:7sK3NcCUEYMztJicrqloJH9mD5TrPvmz7MCsKLVq+b8=,tag:sWlSQDu6ImHdFxsuj7O4IA==,type:str]
pgp: []
unencrypted_suffix: _unencrypted
version: 3.7.1