2024-12-16 23:20:51 -05:00
|
|
|
{config, ...}: {
|
2024-12-15 02:44:50 -05:00
|
|
|
services.hedgedoc = {
|
|
|
|
enable = true;
|
2024-12-16 23:20:51 -05:00
|
|
|
environmentFile = config.sops.secrets."hedgedoc/env".path;
|
2024-12-15 02:44:50 -05:00
|
|
|
settings = {
|
|
|
|
db = {
|
|
|
|
username = "hedgedoc";
|
|
|
|
database = "hedgedoc";
|
|
|
|
host = "/run/postgresql";
|
|
|
|
dialect = "postgresql";
|
|
|
|
};
|
|
|
|
port = 8085;
|
|
|
|
domain = "pad.cything.io";
|
|
|
|
allowEmailRegister = false;
|
|
|
|
protocolUseSSL = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|