Support for max-upload-size

This commit is contained in:
Mats Rauhala 2021-12-31 16:07:46 +02:00
parent 191fea4bb6
commit fe6b177c3d
1 changed files with 12 additions and 0 deletions

View File

@ -22,6 +22,7 @@ let
disable-registration: ${yesNo disable-registration}
access-question: ${access-question}
access-question-answers: ${access-question-answers}
max-upload-size: ${toString max-upload-size}K
'';
in
@ -49,6 +50,17 @@ in
default = "Wiki";
description = "The title of the wiki.";
};
max-upload-size = mkOption {
type = lib.types.int;
default = 100;
description = ''
specifies an upper limit on the size (in kilobytes) of files uploaded
through the wiki's web interface.
To disable uploads, set this to 0.
This will result in the uploads link disappearing
and the _upload url becoming inactive.
'';
};
access-question = mkOption {
type = lib.types.str;
default = "";