diff --git a/services/hedgedoc-hacc.nix b/services/hedgedoc-hacc.nix index 087e5d7..2c05b1c 100644 --- a/services/hedgedoc-hacc.nix +++ b/services/hedgedoc-hacc.nix @@ -43,7 +43,11 @@ allowFreeURL = true; allowGravatar = false; allowOrigin = [ "localhost" "pad.hacc.space" "fff-muc.de" ]; - dbURL = "postgres://codimd:codimd@localhost:5432/codimd"; + db = { + host = "/run/postgresql"; + dialect = "postgres"; + database = "codimd"; + }; defaultPermission = "limited"; domain = "pad.hacc.space"; host = "0.0.0.0"; diff --git a/services/hedgedoc-i4f.nix b/services/hedgedoc-i4f.nix index b904cb4..1b6ed18 100644 --- a/services/hedgedoc-i4f.nix +++ b/services/hedgedoc-i4f.nix @@ -43,7 +43,11 @@ allowFreeURL = true; allowGravatar = false; allowOrigin = [ "localhost" "pad.infra4future.de" "fff-muc.de" ]; - dbURL = "postgres://hedgedoc:hedgedoc@localhost:5432/hedgedoc"; + db = { + host = "/run/postgresql"; + dialect = "postgres"; + database = "hedgedoc"; + }; defaultPermission = "freely"; domain = "pad.infra4future.de"; host = "0.0.0.0";