docspell testing
This commit is contained in:
parent
c2e4e7f2a3
commit
d5ac52bd84
4 changed files with 182 additions and 4 deletions
43
docspell.nix
Normal file
43
docspell.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{ base-domain, ... }:
|
||||
let
|
||||
fqdn = "docspell.${base-domain}";
|
||||
in
|
||||
{
|
||||
services.docspell-joex = {
|
||||
enable = true;
|
||||
base-url = "http://localhost:7878";
|
||||
bind = {
|
||||
address = "0.0.0.0";
|
||||
port = "7878";
|
||||
};
|
||||
scheduler.pool-size = 1;
|
||||
jdbc = {
|
||||
url = "jdbc:postgresql://localhost:5432/docspell";
|
||||
user = "docspell";
|
||||
paswword = "docspell";
|
||||
};
|
||||
};
|
||||
services.docspell-restserver = {
|
||||
enable = true;
|
||||
base-url = "https://${fqdn}";
|
||||
bind = {
|
||||
address = "0.0.0.0";
|
||||
port = 443;
|
||||
};
|
||||
auth = {
|
||||
server-secret = "b64:lv56LIyZmaXTdlhvFBVpoNHt2BTQBgHpb7lwl1gyOG9MuvWKhSi91h84P15QIXirfYPSVV/R1aoTifSO688dWQ==";
|
||||
};
|
||||
backend = {
|
||||
signup = {
|
||||
mode = "invite";
|
||||
new-invite-password = "asunarovow";
|
||||
invite-time = "30 days";
|
||||
};
|
||||
jdbc = {
|
||||
url = "jdbc:postgresql://localhost:5432/docspell";
|
||||
user = "docspell";
|
||||
paswword = "docspell";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue