Have gunicorn bind to unix socket in Bookwyrm systemd unit

This commit is contained in:
Reinout Meliesie 2025-03-07 12:50:25 +01:00
parent 4d13feaa3d
commit 2a0711c842
Signed by: zedfrigg
GPG key ID: 3AFCC06481308BC6

View file

@ -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