paulbsd-salt/states/netbox/templates/gunicorn.py.j2
2022-06-08 23:49:12 +02:00

10 lines
415 B
Django/Jinja

{%- from "netbox/map.jinja" import netbox with context -%}
## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
command = '{{ netbox.install_dir }}/netbox/.venv/bin/gunicorn'
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