23 lines
915 B
YAML
23 lines
915 B
YAML
---
|
|
pretix_systemd_unit_description: "pretix web service"
|
|
pretix_systemd_unit_after: "network.target"
|
|
pretix_systemd_unit_file_path: >-2
|
|
/etc/systemd/system/{{ pretix_systemd_service_name }}
|
|
|
|
pretix_systemd_service_name: "pretix.service"
|
|
pretix_systemd_service_user: "{{ pretix_user }}"
|
|
pretix_systemd_service_group: "{{ pretix_user }}"
|
|
pretix_systemd_service_environment:
|
|
VIRTUAL_ENV: "{{ pretix_virtualenv_dir }}"
|
|
pretix_systemd_service_working_directory: "{{ pretix_install_dir }}"
|
|
pretix_systemd_service_exec_start: >-2
|
|
{{ pretix_virtualenv_dir }}/bin/gunicorn pretix.wsgi
|
|
--name {{ pretix_config_wsgi_name }}
|
|
--workers {{ pretix_config_wsgi_workers }}
|
|
--max-requests {{ pretix_config_wsgi_max_requests }}
|
|
--log-level={{ pretix_config_wsgi_log_level }}
|
|
--bind={{ pretix_config_wsgi_bind_addr }}
|
|
pretix_systemd_service_restart: "on-failure"
|
|
|
|
pretix_systemd_install_wanted_by: "multi-user.target"
|