19 lines
551 B
Plaintext
19 lines
551 B
Plaintext
|
[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
|