{ 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"; }; }; }; }