nixfleet/modules/minio/default.nix
2023-06-26 11:40:26 +02:00

17 lines
368 B
Nix

{config, ...}: {
imports = [../nginx-base];
services.minio = {
enable = true;
rootCredentialsFile = config.age.secrets.minio-credentials.path;
region = "eu-central-1";
};
services.nginx.virtualHosts."cache.aciceri.dev" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://127.0.0.1:9000";
};
};
}