nixos/hosts/architect/minio.nix
2021-07-13 10:53:22 +02:00

26 lines
503 B
Nix

with import ./network.nix;
{
services = {
minio.enable = true;
nginx.virtualHosts.${miniodomain} = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:9000";
extraConfig = ''
allow 10.0.0.0/24;
allow 10.3.0.0/24;
deny all;
'';
};
};
};
networking.extraHosts = ''
127.0.0.1 ${miniodomain}
${architect-lan} ${miniodomain}
${architect-wg} ${miniodomain}
'';
}