-
Notifications
You must be signed in to change notification settings - Fork 0
/
staging.ini
147 lines (118 loc) · 2.93 KB
/
staging.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# For copyright and license terms, see COPYRIGHT.rst (top level of repository)
# Repository: https://github.com/C3S/portal_web
###
# app configuration
# http://docs.pylonsproject.org/projects/pyramid/en/1.5-branch/narr/environment.html
###
[app:main]
# environment
use = egg:c3s_portal_web
env = production
service = ${SERVICE}
# debug
debugtoolbar.enabled = false
debugtoolbar.hosts = 0.0.0.0/0
pyramid.debug_authorization = true
pyramid.debug_authentication = true
pyramid.debug_routematch = false
pyramid.debug_templates = false
pyramid.debug_notfound = false
debug.static = false
debug.res.registry = false
debug.web.request = true
debug.web.context = true
debug.web.response = true
debug.api.request = false
debug.api.context = false
debug.api.response = false
debug.tdb.transactions = false
debugger.winpdb = 0
debugger.debugpy = 0
# benchmarks
benchmark.forms.render = false
benchmark.datatables.prototype = false
benchmark.datatables.serialize = false
benchmark.datatables.deserialize = false
benchmark.datatables.load = false
# pyramid
pyramid.reload_templates = false
pyramid.reload_assets = false
pyramid.default_locale_name = en
pyramid.includes =
pyramid_beaker
pyramid_chameleon
# tryton
tryton.database = ${TRYTON_DATABASE}
tryton.company = 1
tryton.user = 0
tryton.configfile = /shared/config/trytond/staging.conf
# mail
mail.host = ${MAIL_HOST}
mail.port = ${MAIL_PORT}
mail.default_sender = ${MAIL_DEFAULT_SENDER}
mail.to_real_world = ${MAIL_TO_REAL_WORLD}
# session
session.type = file
session.data_dir = /tmp/sessions
session.secret = ${PYRAMID_SESSION_SECRET}
session.cookie_on_exception = true
session.save_accessed_time = true
session.timeout = 3600
session.file_expires = 604800
# authentication
authentication.secret = ${PYRAMID_AUTHENTICATION_SECRET}
# app
app.languages = en de es
# plugins
plugins.pattern = _web
# api
api.in_web = false
api.in_web_path = /api
###
# wsgi server configuration
###
[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 6543
#url_scheme = https
trusted_proxy = %(trusted_proxy)s
clear_untrusted_proxy_headers = true
threads = 6
###
# logging configuration
# http://docs.pylonsproject.org/projects/pyramid/en/1.5-branch/narr/logging.html
###
[loggers]
keys = root, portal_web, debug
[handlers]
keys = console
[formatters]
keys = generic, fullname, funcname, plain
[logger_root]
level = INFO
handlers = console
[logger_portal_web]
level = ERROR
handlers =
qualname = portal_web
[logger_debug]
level = DEBUG
handlers = console
qualname = portal_web
propagate = 0
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = fullname
[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s %(funcName)s] %(message)s
[formatter_fullname]
format =
--- %(levelname)s | %(name)s | %(funcName)s() ---------------------------------
%(message)s
[formatter_funcname]
format = %(levelname)s [%(funcName)s()] %(message)s
[formatter_plain]
format = %(message)s