new version
This commit is contained in:
@@ -58,6 +58,12 @@ in
|
||||
description = "Maximum fraction (0.0-1.0) of the storage filesystem that may be used; uploads are rejected above this.";
|
||||
};
|
||||
|
||||
keyLength = lib.mkOption {
|
||||
type = lib.types.ints.positive;
|
||||
default = 8;
|
||||
description = "Length in characters of the upload/download key token.";
|
||||
};
|
||||
|
||||
publicBaseUrl = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.str;
|
||||
default = null;
|
||||
@@ -134,6 +140,7 @@ in
|
||||
"MAX_FILE_SIZE=${cfg.maxFileSize}"
|
||||
"FILE_TTL_MS=${toString cfg.fileTtlMs}"
|
||||
"MAX_STORAGE_USAGE=${toString cfg.maxStorageUsage}"
|
||||
"KEY_LENGTH=${toString cfg.keyLength}"
|
||||
]
|
||||
++ lib.optionals (cfg.publicBaseUrl != null) [ "PUBLIC_BASE_URL=${cfg.publicBaseUrl}" ]
|
||||
++ lib.optionals cfg.trustProxy [ "TRUST_PROXY=1" ];
|
||||
|
||||
Reference in New Issue
Block a user