nixos/hosts/architect/minio.nix
Giulio De Pasquale 91ef8ff1e2 formatting
2021-11-25 11:42:32 +00:00

24 lines
474 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 = ''
${architect-lan} ${miniodomain}
${architect-wg} ${miniodomain}
'';
}