make minio an s3 gateway

This commit is contained in:
Charlotte 🦝 Delenk 2022-01-26 12:15:46 +01:00
parent fdd723d878
commit 86f66bc489
Signed by: darkkirb
GPG key ID: 015E3768A70AFBC5

View file

@ -1,4 +1,4 @@
{ config, ... }:
{ pkgs, config, ... }:
let
listenIPs = (import ../../utils/getInternalIP.nix config).listenIPs;
in
@ -6,12 +6,6 @@ in
services.minio = {
enable = true;
rootCredentialsFile = "/run/secrets/security/minio/credentials_file";
dataDir = [
"/var/lib/minio/disk0"
"/var/lib/minio/disk1"
"/var/lib/minio/disk2"
"/var/lib/minio/disk3"
];
};
services.nginx.virtualHosts."minio.int.chir.rs" = {
forceSSL = true;
@ -36,4 +30,5 @@ in
};
};
sops.secrets."security/minio/credentials_file" = { };
systemd.services.minio.serviceConfig.ExecStart = "${pkgs.minio}/bin/minio gateway s3 --json --address :9000 --console-address :9001 --config-dir=/var/lib/minio/config http://[fd00:e621:e621:2::2]:9000";
}