2024-06-14 00:09:10 +02:00
|
|
|
{ config, ... }:
|
|
|
|
let
|
|
|
|
inherit (config.serverConfig) vhosts;
|
2024-09-28 22:09:24 +02:00
|
|
|
in
|
|
|
|
{
|
|
|
|
services.hedgedoc = {
|
2024-06-14 00:09:10 +02:00
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
domain = vhosts.hedgedoc_host.host;
|
|
|
|
inherit (vhosts.hedgedoc_host) port;
|
|
|
|
host = "127.0.0.1";
|
|
|
|
protocolUseSSL = true;
|
|
|
|
allowEmailRegister = false; # no registrations for now
|
|
|
|
allowAnonymousEdits = true; # anonymous can edit select files
|
|
|
|
allowAnonymous = false; # anonymous can't actually create notes
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|