1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2025-01-18 08:06:16 +01:00
infrastructure/roles/aurweb/templates/aurweb.service.j2
Leonidas Spyropoulos 8c0f468684
aurweb: use specific prod logging on gunicorn
Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>
2022-11-02 23:26:24 +00:00

19 lines
491 B
Django/Jinja

[Unit]
Description=aurweb asgi server
[Service]
RuntimeDirectory={{ aurweb_prom_dir }}
Environment=PROMETHEUS_MULTIPROC_DIR=/run/{{ aurweb_prom_dir }}
User={{ aurweb_user }}
WorkingDirectory={{ aurweb_dir }}
LimitNOFILE=2048
ExecStart=/usr/bin/poetry run gunicorn \
--log-config {{ aurweb_dir }}/logging.prod.conf \
--bind {{ aurweb_asgi_bind }} \
--workers {{ aurweb_workers }} \
-k uvicorn.workers.UvicornWorker \
aurweb.asgi:app
[Install]
WantedBy=multi-user.target