Adopt nix setup and joex module

This commit is contained in:
eikek
2021-11-18 00:18:54 +01:00
parent 54bbbde8b9
commit 7a4a444da6
2 changed files with 24 additions and 1 deletions

View File

@ -13,6 +13,7 @@ let
app-name = "Docspell";
app-id = "rest1";
base-url = "http://localhost:7880";
internal-url = "http://localhost:7880";
max-item-page-size = 200;
max-note-length = 180;
show-classification-settings = true;
@ -145,6 +146,17 @@ in {
'';
};
internal-url = mkOption {
type = types.str;
default = defaults.internal-url;
description = ''
This url is the base url for reaching this server internally.
While you might set `base-url` to some external address (like
mydocs.myserver.com), the `internal-url` must be set such that
other nodes can reach this server.
'';
};
max-item-page-size = mkOption {
type = types.int;
default = defaults.max-item-page-size;