acme root null

This commit is contained in:
2025-06-12 22:29:53 -05:00
parent df95d0a7e9
commit 5e1a6273bb
2 changed files with 2 additions and 14 deletions
+2 -13
View File
@@ -31,12 +31,6 @@
description = "MinIO Admin Console port.";
};
rootUser = lib.mkOption {
type = lib.types.str;
default = "minioadmin";
description = "MinIO root username.";
};
credentialsFile = lib.mkOption {
type = lib.types.path;
description = "File containing MinIO credentials.";
@@ -66,12 +60,6 @@
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
# preStart = ''
# mkdir -p ${opts.dataDir}
# chown -R minio:minio ${opts.dataDir}
# chmod u+rxw ${opts.dataDir}
# '';
serviceConfig = {
ExecStart = ''
${pkgs.minio}/bin/minio server ${opts.dataDir} \
@@ -92,6 +80,7 @@
virtualHosts.${opts.default-nginx.hostname} = {
forceSSL = true;
enableACME = true;
acmeRoot = null;
locations."/" = {
proxyPass = "http://localhost:${toString opts.dataPort}";
};
@@ -102,7 +91,7 @@
};
networking.firewall.allowedTCPPorts = lib.mkMerge [
[ opts.dataPort opts.consolePort ]
(lib.mkIf opts.enable [ opts.dataPort opts.consolePort ])
(lib.mkIf opts.default-nginx.enable [ 80 443 ])
];
};
-1
View File
@@ -81,7 +81,6 @@
enable = true;
dataDir = "/data/minio";
rootUser = "admin";
credentialsFile = config.sops.secrets."minio-credentials".path;
dataPort = 9000; # S3 API access