aurweb/examples/aurweb.service
Kevin Morris e5dfd53b9a
examples: poetry-driven git scripts & aurweb service
This introduces examples of a gunicorn systemd service in
addition to git script wrappers that can be used for poetry
virtualenv-driven installations.

Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-01-17 14:05:39 -08:00

16 lines
361 B
Desktop File

[Unit]
Description=aurweb asgi server
[Description]
User=aur
WorkingDirectory=/srv/http/aurweb
ExecStart=/usr/bin/poetry run gunicorn \
--log-config /srv/http/aurweb/logging.conf \
--bind '0.0.0.0:8000' \
--forwarded-allow-ips '*' \
--workers 4 \
-k uvicorn.workers.UvicornWorker \
aurweb.asgi:app
[Install]
WantedBy=multi-user.target