prometheus-minio-exporter service: default to local minio server if enabled
This commit is contained in:
parent
aad88ddf5b
commit
8e10a4d862
@ -29,26 +29,32 @@ in {
|
|||||||
minioAddress = mkOption {
|
minioAddress = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
example = "https://10.0.0.1:9000";
|
example = "https://10.0.0.1:9000";
|
||||||
|
default = if config.services.minio.enable then "http://localhost:9000" else null;
|
||||||
description = ''
|
description = ''
|
||||||
The URL of the minio server.
|
The URL of the minio server.
|
||||||
Use HTTPS if Minio accepts secure connections only.
|
Use HTTPS if Minio accepts secure connections only.
|
||||||
|
By default this connects to the local minio server if enabled.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
minioAccessKey = mkOption {
|
minioAccessKey = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
example = "BKIKJAA5BMMU2RHO6IBB";
|
example = "BKIKJAA5BMMU2RHO6IBB";
|
||||||
|
default = if config.services.minio.enable then config.services.minio.accessKey else null;
|
||||||
description = ''
|
description = ''
|
||||||
The value of the Minio access key.
|
The value of the Minio access key.
|
||||||
It is required in order to connect to the server.
|
It is required in order to connect to the server.
|
||||||
|
By default this uses the one from the local minio server if enabled.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
minioAccessSecret = mkOption {
|
minioAccessSecret = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
|
default = if config.services.minio.enable then config.services.minio.secretKey else null;
|
||||||
description = ''
|
description = ''
|
||||||
The calue of the Minio access secret.
|
The calue of the Minio access secret.
|
||||||
It is required in order to connect to the server.
|
It is required in order to connect to the server.
|
||||||
|
By default this uses the one from the local minio server if enabled.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user