Support for max-upload-size
This commit is contained in:
parent
191fea4bb6
commit
fe6b177c3d
@ -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 = "";
|
||||
|
Loading…
Reference in New Issue
Block a user