nixos-config/nixos/machines/chungus/services-s3.nix
2023-10-05 16:30:48 +02:00

18 lines
355 B
Nix

{ config, ... }:
{
services.minio = {
enable = true;
region = "home";
};
services.nginx = {
enable = true;
virtualHosts."s3.${config.networking.hostName}.private" = {
locations."/" = {
recommendedProxySettings = true;
proxyWebsockets = true;
proxyPass = "http://localhost:9001";
};
};
};
}