paulbsd-salt/states/netbox/templates/gunicorn.py.j2
2020-07-10 00:58:55 +02:00

10 lines
409 B
Django/Jinja

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