hypercorn_conf.py 245 B

12345678910111213
  1. import multiprocessing
  2. import os
  3. _is_travis = os.environ.get('TRAVIS') == 'true'
  4. workers = multiprocessing.cpu_count()
  5. if _is_travis:
  6. workers = 2
  7. bind = ["0.0.0.0:8080"]
  8. keep_alive_timeout = 120
  9. loglevel = "error"
  10. worker_class = "uvloop"