use environmentFile
This commit is contained in:
1 parent
2a83cd5f86
commit
2b1453cd9f
4 files changed
+32
-27
No files matched your search
@@ -37,9 +37,9 @@
|
||||
description = "MinIO root username.";
|
||||
};
|
||||
|
||||
rootPasswordFile = lib.mkOption {
|
||||
credentialsFile = lib.mkOption {
|
||||
type = lib.types.path;
|
||||
description = "File containing MinIO root password.";
|
||||
description = "File containing MinIO credentials.";
|
||||
};
|
||||
|
||||
default-nginx = {
|
||||
@@ -74,8 +74,7 @@
|
||||
User = "minio";
|
||||
Group = "minio";
|
||||
Environment = [
|
||||
"MINIO_ACCESS_KEY=${opts.rootUser}"
|
||||
"MINIO_SECRET_KEY_FILE=${opts.rootPasswordFile}"
|
||||
"environmentFile = ${opts.credentialsFile}"
|
||||
];
|
||||
Restart = "always";
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user