infra/hosts/md/hedgedoc.nix
2026-02-14 02:59:42 +01:00

16 lines
388 B
Nix

{ config, ... }:
{
services.hedgedoc = {
enable = true;
environmentFile = config.age.secrets.hedgedoc_db_password.path;
settings = {
domain = "md.${config.networking.domain}";
dbURL = "postgres://hedgedoc:\${DB_PASSWORD}@sql.berlin.ccc.de:5432/hedgedoc";
db.dialect = "postgresql";
protocolUseSSL = true;
enableStatsApi = true;
};
};
}