Increase upload limit in bin
This commit is contained in:
parent
855fc75d3b
commit
1d0d4e6016
|
@ -5,5 +5,6 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
address = "0.0.0.0";
|
address = "0.0.0.0";
|
||||||
port = 6162;
|
port = 6162;
|
||||||
|
textUploadLimit = 32;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,12 @@ in {
|
||||||
description = "Binary uploads file size limit (in MiB)";
|
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 {
|
clientDesc = mkOption {
|
||||||
type = types.nullOr types.bool;
|
type = types.nullOr types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
|
@ -50,6 +56,8 @@ in {
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
|
Environment =
|
||||||
|
''BIN_LIMITS={form="${toString cfg.textUploadLimit} MiB"}'';
|
||||||
ExecStart = "${pkgs.bin}/bin/bin -a ${toString cfg.address} -b ${
|
ExecStart = "${pkgs.bin}/bin/bin -a ${toString cfg.address} -b ${
|
||||||
toString cfg.binaryUploadLimit
|
toString cfg.binaryUploadLimit
|
||||||
} -p ${toString cfg.port} -u ${toString cfg.upload}";
|
} -p ${toString cfg.port} -u ${toString cfg.upload}";
|
||||||
|
|
Loading…
Reference in New Issue