Ai
4 Star 21 Fork 4

五十风/liteAuth

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
gunicorn_config.py 1.32 KB
一键复制 编辑 原始数据 按行查看 历史
五十风 提交于 2020-09-02 18:00 +08:00 . init
"""
配置文件
运行:
gunicorn lite_auth_http.lite_auth_http.wsgi -c python:gunicorn_config
"""
import os
import config as lite_auth_config
bind = lite_auth_config.HTTP_LISTEN
proc_name = 'LiteAuthHttp'
pidfile = 'gunicorn.pid'
capture_output = True
workers = 3
worker_class = 'gevent'
# daemon = True
logconfig_dict = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'console': {
'level': 'INFO',
'class': 'logging.handlers.RotatingFileHandler',
'filename': os.path.join(lite_auth_config.LOG_PATH, 'gunicorn.log'),
'maxBytes': lite_auth_config.LOG_MAX_BYTES,
'backupCount': lite_auth_config.LOG_BACKUP_COUNT,
},
'access': {
'level': 'INFO',
'class': 'logging.handlers.RotatingFileHandler',
'filename': os.path.join(lite_auth_config.LOG_PATH, 'access.log'),
'maxBytes': lite_auth_config.LOG_MAX_BYTES,
'backupCount': lite_auth_config.LOG_BACKUP_COUNT,
},
},
'loggers': {
'gunicorn.error': {
'handlers': ['console'],
'level': 'INFO',
'propagate': False,
},
'gunicorn.access': {
'handlers': ['access'],
'level': 'INFO',
'propagate': False,
},
},
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/gojuukaze/liteAuth.git
git@gitee.com:gojuukaze/liteAuth.git
gojuukaze
liteAuth
liteAuth
master

搜索帮助