From 2a623919d85baba244d4d7f861b02ada98879db0 Mon Sep 17 00:00:00 2001 From: Flancian <0@flancia.org> Date: Mon, 25 Dec 2023 20:42:06 +0100 Subject: [PATCH] autopushed --- pinhole.md | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/pinhole.md b/pinhole.md index 8b44a5c15..c5dc4561c 100644 --- a/pinhole.md +++ b/pinhole.md @@ -41,13 +41,24 @@ location / { - Set up uwsgi. I created the following uwsgi.ini and ./run-uwsgi.sh scripts: +``` +[uwsgi] +# module = app:create_app() +touch-reload = /tmp/pinhole-restart +home = /home/pinhole/.cache/pypoetry/virtualenvs/pinhole-_elcgCn9-py3.11 +master = true +processes = 6 +socket = /var/www/pinhole/pinhole.sock +chmod-socket = 666 +vacuum = true +die-on-term = true ``` > +> +``` +#!/bin/bash + +poetry run uwsgi uwsgi.ini ``` -``` -> -> -``` - -Run :) +Run :) Or optionally set up a [[systemd service]].