nix/hosts/MOMO/services/hedgedoc.nix

26 lines
604 B
Nix

{ config, ... }: {
services.hedgedoc = {
enable = true;
settings = {
port = 8009;
host = "127.0.0.1";
allowOrigin =
[ "localhost" "127.0.0.1" "hedgedoc.dryb.org" "md.dryb.org" ];
allowGravatar = true;
db = {
username = "hedgedoc";
database = "hedgedoc";
host = "postgresql:///hedgedoc";
dialect = "postgresql";
};
allowAnonymous = false;
allowAnonymousEdits = false;
allowFreeURL = true;
requireFreeURLAuthentication = true;
email = true;
allowEmailRegister = true;
};
};
}