config.py 393 B

12345678910111213141516171819
  1. # config.py
  2. import os
  3. import gevent.monkey
  4. gevent.monkey.patch_all()
  5. import multiprocessing
  6. # debug = True
  7. loglevel = 'debug'
  8. bind = "0.0.0.0:7001"
  9. pidfile = "log/gunicorn.pid"
  10. accesslog = "log/access.log"
  11. errorlog = "log/debug.log"
  12. daemon = True
  13. # 启动的进程数
  14. workers = multiprocessing.cpu_count()
  15. worker_class = 'gevent'
  16. x_forwarded_for_header = 'X-FORWARDED-FOR'