From 2a0711c84280be0dd51c31e0cdf4fe3acae5fb29 Mon Sep 17 00:00:00 2001 From: Reinout Meliesie Date: Fri, 7 Mar 2025 12:50:25 +0100 Subject: [PATCH] Have gunicorn bind to unix socket in Bookwyrm systemd unit --- packages/bookwyrm/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bookwyrm/package.nix b/packages/bookwyrm/package.nix index 63c9735..f20de90 100644 --- a/packages/bookwyrm/package.nix +++ b/packages/bookwyrm/package.nix @@ -113,7 +113,7 @@ mkDerivation { export EMAIL_HOST_PASSWORD="" export SECRET_KEY="\$( cat /etc/nixos/assets/bookwyrm-secret-key )" # The escape here is required in order to retrieve the key file contents at runtime - ${gunicorn}/bin/gunicorn bookwyrm.wsgi:application + ${gunicorn}/bin/gunicorn bookwyrm.wsgi:application --bind=unix:/run/bookwyrm/http-socket EOF chmod +x $out/bin/bookwyrm