new version

This commit is contained in:
Anaïs Saraiva
2026-08-16 16:04:26 +02:00
parent a6ff57e5d5
commit c6a96b08c3
7 changed files with 33 additions and 6 deletions
+7
View File
@@ -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" ];