X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=nixops%2Fmodules%2Fdatabases%2Fdefault.nix;h=32001810475af4b5e71f8276b11dc972ccd67283;hb=18fdf47041026412e365224f21c258b436ceda18;hp=bbacded26d9aa2f8409792069f44125e05af3717;hpb=52c3e9e710eb26d5a7b8edca154f8e99c1deaec3;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/nixops/modules/databases/default.nix b/nixops/modules/databases/default.nix index bbacded..3200181 100644 --- a/nixops/modules/databases/default.nix +++ b/nixops/modules/databases/default.nix @@ -2,6 +2,9 @@ let cfg = config.services.myDatabases; in { + imports = [ + ./openldap.nix + ]; options.services.myDatabases = { enable = lib.mkEnableOption "my databases service"; postgresql = { @@ -124,8 +127,9 @@ in { authentication = '' local all postgres ident local all all md5 - hostssl discourse discourse all md5 - hostssl all all all pam + hostssl all all 188.165.209.148/32 md5 + hostssl all all 178.33.252.96/32 md5 + hostssl all all all pam hostssl replication backup-1 2001:41d0:302:1100::9:e5a9/128 pam pamservice=postgresql_replication hostssl replication backup-1 54.37.151.137/32 pam pamservice=postgresql_replication ''; @@ -201,5 +205,6 @@ in { mkdir -p $(dirname ${myconfig.env.databases.redis.socket}) chown redis $(dirname ${myconfig.env.databases.redis.socket}) ''; + }; }