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

19 lines
551 B
Django/Jinja

[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