replaced deprecated minio credentials with cred file in /etc
This commit is contained in:
@@ -32,6 +32,16 @@ in {
|
|||||||
|
|
||||||
time.timeZone = "Europe/Oslo";
|
time.timeZone = "Europe/Oslo";
|
||||||
|
|
||||||
|
environment.etc = {
|
||||||
|
minio-rootcredentials = {
|
||||||
|
text = ''
|
||||||
|
accessKey="admin"
|
||||||
|
secretKey="en to tre fire"
|
||||||
|
'';
|
||||||
|
mode = "640";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
features = {
|
features = {
|
||||||
os = {
|
os = {
|
||||||
externalInterface = "eth0";
|
externalInterface = "eth0";
|
||||||
@@ -72,9 +82,10 @@ in {
|
|||||||
enable = true;
|
enable = true;
|
||||||
region = "fs2";
|
region = "fs2";
|
||||||
browser = true;
|
browser = true;
|
||||||
accessKey = "admin";
|
# accessKey = "admin";
|
||||||
secretKey = "en to tre fire";
|
# secretKey = "en to tre fire"; DEPRECATED
|
||||||
listenAddress = "0.0.0.0:9000";
|
listenAddress = "0.0.0.0:9000";
|
||||||
|
rootCredentialsFile = "/etc/minio-rootcredentials";
|
||||||
dataDir = [ "/vol/s3" ];
|
dataDir = [ "/vol/s3" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user