Advertisement
METAJIJI

guniconf.py

Apr 6th, 2015
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. from multiprocessing import cpu_count
  2.  
  3. # Server sockets
  4. bind = '127.0.0.1:8001' # See nginx vhost config.
  5. backlog = 1024
  6.  
  7. workers = cpu_count() * 2 + 1
  8. worker_class = 'gevent'
  9. worker_connections = 1000
  10. timeout = 30
  11. keepalive = 2
  12.  
  13. # Debugging
  14. #debug = True
  15. debug = False
  16. spew = False
  17.  
  18. # Server mechanics
  19. daemon = False
  20. pidfile = 'servegunicorn.pid'
  21. umask = 0
  22. user = None
  23. group = None
  24. tmp_upload_dir = None
  25.  
  26. # Logging
  27. #loglevel = 'debug'
  28. loglevel = 'error'
  29. logfile = 'logs/gunicorn-log.log'
  30. accesslog = 'logs/gunicorn-access.log'
  31. errorlog = 'logs/gunicorn-error.log'
  32.  
  33. proc_name = None
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement