-
Notifications
You must be signed in to change notification settings - Fork 13
/
development.ini
86 lines (68 loc) · 1.77 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
###
# app configuration
# https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html
###
[app:main]
use = call:muesli.web:main
pyramid.includes = pyramid_session_redis pyramid_debugtoolbar
# session settings
redis.sessions.secret = your_cookie_signing_secret
redis.sessions.timeout = 7200
# session cookie settings
redis.sessions.cookie_name = session
redis.sessions.cookie_max_age = 7200
redis.sessions.cookie_path = /
redis.sessions.cookie_secure = False
redis.sessions.cookie_httponly = True
redis.sessions.cookie_samesite = lax
redis.sessions.cookie_on_exception = True
redis.sessions.url = redis://redis:6379/0
# Development tools
pyramid.reload_templates = true
pyramid.debug_templates = true
pyramid.debug_authorization = false
pyramid.debug_notfound = false
pyramid.debug_routematch = false
pyramid.default_locale_name = de
debugtoolbar.hosts = ::/0 0.0.0.0/0
###
# wsgi server configuration
###
# This part is only relevant for development in IDEs. There it makes sense to use a python server such that debugging
# and introspection features work better.
[server:main]
use = egg:waitress#main
listen = *:8080
[uwsgi]
proj = muesli4
chdir = /opt/%(proj)
http-socket = :8080
disable-logging = true
plugin = python3
pidfile=/opt/%(proj).pid
uid = muesli
gid = muesli
###
# logging configuration
# https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html
###
[loggers]
keys = root, muesli
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = INFO
handlers = console
[logger_muesli]
level = DEBUG
handlers =
qualname = muesli
[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