Setup minio properly

This commit is contained in:
Greg Hellings
2024-06-20 14:35:29 -05:00
parent 071af09085
commit 4bbb39f3c1
3 changed files with 30 additions and 15 deletions
-13
View File
@@ -9,8 +9,6 @@ let
adblockUpdate = pkgs.writeShellScriptBin "adblockUpdate" (builtins.readFile ./adblockUpdate.sh);
proxyPort = 3128;
minioPort = 9000;
minioConsolePort = 9001;
dnsPort = 53;
dhcpPort = 67;
dnsServers = [
@@ -62,8 +60,6 @@ in {
];
allowedTCPPorts = [
dnsPort
minioPort
minioConsolePort
proxyPort
80
];
@@ -191,15 +187,7 @@ in {
"jellyfin.home".target = "http://localhost:8096/";
};
age.secrets.minio.file = ../../secrets/minio.age;
services = {
minio = {
enable = true;
dataDir = [ "/proxy/minio" ];
rootCredentialsFile = config.age.secrets.minio.path;
browser = true;
};
nginx.virtualHosts."nixcache.thehellings.lan" = {
serverName = "nixcache.thehellings.lan";
serverAliases = [ "nixcache" "nixcache.home" ];
@@ -238,7 +226,6 @@ in {
environment.systemPackages = with pkgs; [
bind
curl # Used by dnsmasq fetching
minio-client
sqlite
];
}