-
Notifications
You must be signed in to change notification settings - Fork 0
/
development.ini
89 lines (71 loc) · 1.55 KB
/
development.ini
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
[DEFAULT]
host = 0.0.0.0
port = 6543
[app:unsafe]
use = egg:unsafe
db.app = %(here)s/app.db
db.sessions = %(here)s/sessions.db
pyramid.reload_templates = true
pyramid.debug_authorization = false
pyramid.debug_notfound = true
pyramid.debug_routematch = false
pyramid.default_locale_name = sv
#pyramid.includes = pyramid_debugtoolbar
jinja2.undefined=debug
[filter:translogger]
use = egg:Paste#translogger
setup_console_handler = False
[pipeline:main]
pipeline = translogger
unsafe
###
# wsgi server configuration
###
[server:main]
use = egg:waitress#main
listen = %(host)s:%(port)s
[server:gunicorn]
use = egg:gunicorn
bind = %(host)s
workers = 1
worker_class = gevent
certfile = %(here)s/ssl/server.crt
keyfile = %(here)s/ssl//server.key
###
# logging configuration
# https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html
###
[loggers]
keys = root, unsafe, wsgi
[handlers]
keys = console, accesslog
[formatters]
keys = generic, accesslog
[logger_root]
level = INFO
handlers = console
[logger_unsafe]
level = DEBUG
handlers =
qualname = unsafe
[logger_wsgi]
level = INFO
handlers = accesslog
#handlers = accesslog, console
qualname = wsgi
propagate = 0
[handler_accesslog]
class = FileHandler
#args = ('%(here)s/access.log','a')
args = ('access.log','a')
level = INFO
formatter = accesslog
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s
[formatter_accesslog]
format = %(message)s