Browse Source

[enh] Add log file

zamentur 8 years ago
parent
commit
80bbbf93b9
1 changed files with 5 additions and 0 deletions
  1. 5 0
      conf/gunicorn_config.py

+ 5 - 0
conf/gunicorn_config.py

@@ -4,3 +4,8 @@ workers = 4
 user = 'YNH_APP_INSTANCE_NAME'
 bind = 'unix:/opt/YNH_APP_INSTANCE_NAME/sock'
 pid = '/run/gunicorn/YNH_APP_INSTANCE_NAME-pid'
+errorlog = '/var/log/YNH_APP_INSTANCE_NAME/error.log'
+accesslog = '/var/log/YNH_APP_INSTANCE_NAME/access.log'
+access_log_format = '%({X-Real-IP}i)s %({X-Forwarded-For}i)s %(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"'
+loglevel = 'warning'
+captureoutput = True