| { config, ... }:
let
domain = "minio.${config.networking.privateDomain}";
in {
services.minio = {
enable = true;
listenAddress = "127.0.0.1:7000";
region = "eu-central-1";
browser = false;
};
services.nginx.virtualHosts.${domain} = {
listenPrivate = true;
locations."/" = {
proxyPass = "http://127.0.0.1:7000";
extraConfig = ''
client_max_body_size 0;
proxy_buffering off;
'';
};
};
}
|