-
Notifications
You must be signed in to change notification settings - Fork 1
/
gunicorn.conf.py
40 lines (37 loc) · 963 Bytes
/
gunicorn.conf.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
"""Configuration for the Gunicorn server."""
import sys
bind = "0.0.0.0:8050"
workers = 1
loglevel = "info"
preload = True
logconfig_dict = GUNICORN_LOG_CONFIG = {
"handlers": {
"console_stdout": {
"level": "DEBUG",
"class": "logging.StreamHandler",
"stream": sys.stdout,
},
},
"loggers": {
"": {"handlers": ["console_stdout"], "level": "INFO", "propagate": False},
"gunicorn": {
"handlers": ["console_stdout"],
"level": "INFO",
"propagate": False,
},
"gunicorn.access": {
"handlers": ["console_stdout"],
"level": "INFO",
"propagate": False,
},
"gunicorn.error": {
"handlers": ["console_stdout"],
"level": "INFO",
"propagate": False,
},
},
"root": {
"level": "INFO",
"handlers": ["console_stdout"],
},
}