1
0
forked from infra/ansible
infra/roles/pretix/templates/pretix-web.service.j2

19 lines
551 B
Plaintext
Raw Permalink Normal View History

2021-11-01 22:49:09 +01:00
[Unit]
Description=pretix web service
After=network.target
[Service]
User={{ pretix_user }}
Group={{ pretix_group }}
Environment="VIRTUAL_ENV=/opt/pretix/venv"
Environment="PATH=/opt/pretix/venv/bin:/usr/local/bin:/usr/bin:/bin"
ExecStart=/opt/pretix/venv/bin/gunicorn pretix.wsgi \
--name pretix --workers 5 \
--max-requests 1200 --max-requests-jitter 50 \
--log-level=info --bind=127.0.0.1:8345
WorkingDirectory=/opt/pretix
Restart=on-failure
[Install]
WantedBy=multi-user.target