From 8682f11eb9226bfa9283e2ec1f27a433c64d9cfd Mon Sep 17 00:00:00 2001 From: coolneng Date: Sun, 23 Oct 2022 17:34:18 +0200 Subject: [PATCH] Optimize postgresql performance --- modules/webstack.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/webstack.nix b/modules/webstack.nix index a47e379..e66bc38 100644 --- a/modules/webstack.nix +++ b/modules/webstack.nix @@ -186,6 +186,10 @@ host all all 127.0.0.1/32 trust host all all ::1/128 trust ''; + settings = { + max_connections = "300"; + shared_buffers = "512MB"; + }; }; # Restart reverse proxy after services startup