nixos/hosts/architect/minio.nix

29 lines
574 B
Nix
Raw Normal View History

{ lib, ... }:
let
domain = "s3.giugl.io";
network = import ./network.nix;
in {
2021-07-13 09:53:22 +01:00
services = {
minio.enable = true;
nginx.virtualHosts.${domain} = {
2021-07-13 09:53:22 +01:00
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:9000";
extraConfig = ''
allow 10.0.0.0/24;
${lib.concatMapStrings (x: "allow ${x};") network.gdevices-wg}
2021-07-13 09:53:22 +01:00
deny all;
'';
};
};
};
networking.extraHosts = ''
${network.architect-lan} ${domain}
${network.architect-wg} ${domain}
2021-07-13 09:53:22 +01:00
'';
}