acme root null
This commit is contained in:
@@ -31,12 +31,6 @@
|
|||||||
description = "MinIO Admin Console port.";
|
description = "MinIO Admin Console port.";
|
||||||
};
|
};
|
||||||
|
|
||||||
rootUser = lib.mkOption {
|
|
||||||
type = lib.types.str;
|
|
||||||
default = "minioadmin";
|
|
||||||
description = "MinIO root username.";
|
|
||||||
};
|
|
||||||
|
|
||||||
credentialsFile = lib.mkOption {
|
credentialsFile = lib.mkOption {
|
||||||
type = lib.types.path;
|
type = lib.types.path;
|
||||||
description = "File containing MinIO credentials.";
|
description = "File containing MinIO credentials.";
|
||||||
@@ -66,12 +60,6 @@
|
|||||||
after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
|
||||||
# preStart = ''
|
|
||||||
# mkdir -p ${opts.dataDir}
|
|
||||||
# chown -R minio:minio ${opts.dataDir}
|
|
||||||
# chmod u+rxw ${opts.dataDir}
|
|
||||||
# '';
|
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = ''
|
ExecStart = ''
|
||||||
${pkgs.minio}/bin/minio server ${opts.dataDir} \
|
${pkgs.minio}/bin/minio server ${opts.dataDir} \
|
||||||
@@ -92,6 +80,7 @@
|
|||||||
virtualHosts.${opts.default-nginx.hostname} = {
|
virtualHosts.${opts.default-nginx.hostname} = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
acmeRoot = null;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://localhost:${toString opts.dataPort}";
|
proxyPass = "http://localhost:${toString opts.dataPort}";
|
||||||
};
|
};
|
||||||
@@ -102,7 +91,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = lib.mkMerge [
|
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 ])
|
(lib.mkIf opts.default-nginx.enable [ 80 443 ])
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -81,7 +81,6 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
dataDir = "/data/minio";
|
dataDir = "/data/minio";
|
||||||
rootUser = "admin";
|
|
||||||
credentialsFile = config.sops.secrets."minio-credentials".path;
|
credentialsFile = config.sops.secrets."minio-credentials".path;
|
||||||
|
|
||||||
dataPort = 9000; # S3 API access
|
dataPort = 9000; # S3 API access
|
||||||
|
|||||||
Reference in New Issue
Block a user