Erik Thuning 5a14f225b4 Added documentation for setting up the service.
Also made a small change to the python startup handling, ensuring that
there is always a tunnel configuration file as soon as the service
successfully starts for the first time.
2025-03-11 16:31:59 +01:00

25 lines
542 B
INI

[uwsgi]
plugin = python3
socket = 127.0.0.1:5000
processes = 4
threads = 2
wsgi-file = application.wsgi
callable = app
umask = 022
# Settings above this line should be safe to reuse unchanged.
# Below settings may need tweaking.
# Where the repo root is located
application_base = /var/www/wg-selfserve
# The name of the directory under chdir where the virtualenv is stored
virtualenv = env
# Settings below this line should be left as they are.
chdir = %(application_base)
exec-pre-app = rm -f %(application_base)/work/lockfile.lock~