paulbsd-salt/states/netbox/templates/gunicorn.py.j2

10 lines
415 B
Plaintext
Raw Normal View History

{%- from "netbox/map.jinja" import netbox with context -%}
2020-07-10 00:58:55 +02:00
## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
2022-06-08 23:49:12 +02:00
command = '{{ netbox.install_dir }}/netbox/.venv/bin/gunicorn'
2020-07-10 00:58:55 +02:00
pythonpath = '{{ netbox.install_dir }}/netbox/netbox'
bind = '{{ netbox.gunicorn.bind_addr }}:{{ netbox.gunicorn.bind_port }}'
workers = 3
user = '{{ netbox.gunicorn.run_user }}'
max_requests = 5000
max_requests_jitter = 500