monasca-api/docker/api-gunicorn.conf.j2
Christian Brandstetter c8116864a1 Add tooling for building Docker image
Change-Id: I5398a5f38525eabce8b8cf4d686ae68c666a6d00
Story: 2001694
Task: 24231
2018-10-09 10:47:15 +02:00

16 lines
426 B
Django/Jinja

bind = '0.0.0.0:{{ MONASCA_CONTAINER_API_PORT }}'
proc_name = 'monasca-api'
backlog = {{ GUNICORN_BACKLOG | int }}
workers = {{ GUNICORN_WORKERS | int }}
worker_class = '{{ GUNICORN_WORKER_CLASS }}'
worker_connections = '{{ GUNICORN_WORKER_CONNECTIONS }}'
timeout = {{ GUNICORN_TIMEOUT | int }}
{% if ADD_ACCESS_LOG == true %}
accesslog = '-'
{% endif %}
access_log_format = '{{ ACCESS_LOG_FIELDS }}'
capture_output = True