From 1c878b17cc59ca1ae8f8afd04da5964c5acb6b77 Mon Sep 17 00:00:00 2001 From: Marcel Date: Wed, 26 Nov 2025 21:22:33 +0100 Subject: [PATCH] nixos/weblate: add gunicorn preloading --- nixos/modules/services/web-apps/weblate.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/web-apps/weblate.nix b/nixos/modules/services/web-apps/weblate.nix index 36346ab5e012..2219c0d59a58 100644 --- a/nixos/modules/services/web-apps/weblate.nix +++ b/nixos/modules/services/web-apps/weblate.nix @@ -369,9 +369,10 @@ in }); in '' - ${gunicorn}/bin/gunicorn \ + ${lib.getExe gunicorn} \ --name=weblate \ --bind='unix:///run/weblate.socket' \ + --preload \ weblate.wsgi ''; ExecReload = "${lib.getExe' pkgs.coreutils "kill"} -s HUP $MAINPID";