diff options
Diffstat (limited to 'host/Rory-nginx/services/matrix/synapse/db.nix')
-rw-r--r-- | host/Rory-nginx/services/matrix/synapse/db.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/host/Rory-nginx/services/matrix/synapse/db.nix b/host/Rory-nginx/services/matrix/synapse/db.nix index d8dcde3..24c714e 100644 --- a/host/Rory-nginx/services/matrix/synapse/db.nix +++ b/host/Rory-nginx/services/matrix/synapse/db.nix @@ -11,7 +11,9 @@ host = "/run/postgresql"; application_name = "matrix-synapse (rory.gay) - ${if workerName == null then throw "synapse/db.nix: workerName unspecified" else workerName}"; cp_min = - if dbGroup == "small" then + if dbGroup == "solo" then + 1 + else if dbGroup == "small" then 2 else if dbGroup == "medium" then 5 @@ -20,7 +22,9 @@ else throw "synapse/db.nix: Invalid dbGroup: ${if dbGroup == null then "null" else dbGroup}"; cp_max = - if dbGroup == "small" then + if dbGroup == "solo" then + 1 + else if dbGroup == "small" then 2 else if dbGroup == "medium" then 10 |