16 lines
388 B
Nix
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;
|
|
};
|
|
};
|
|
}
|
|
|