Increase upload limit in bin

Esse commit está contido em:
Agatha Lovelace 2023-02-18 13:50:10 +01:00
commit 1d0d4e6016
Assinado por: sorceress
ID da chave GPG: 01D0B3AB10CED4F8
2 arquivos alterados com 9 adições e 0 exclusões

Ver arquivo

@ -5,5 +5,6 @@
enable = true;
address = "0.0.0.0";
port = 6162;
textUploadLimit = 32;
};
}

Ver arquivo

@ -20,6 +20,12 @@ in {
description = "Binary uploads file size limit (in MiB)";
};
textUploadLimit = mkOption {
type = types.nullOr types.int;
default = 16;
description = "Text uploads file size limit (in MiB)";
};
clientDesc = mkOption {
type = types.nullOr types.bool;
default = false;
@ -50,6 +56,8 @@ in {
serviceConfig = {
Type = "simple";
Environment =
''BIN_LIMITS={form="${toString cfg.textUploadLimit} MiB"}'';
ExecStart = "${pkgs.bin}/bin/bin -a ${toString cfg.address} -b ${
toString cfg.binaryUploadLimit
} -p ${toString cfg.port} -u ${toString cfg.upload}";