currentfeature/docs
Last change
on this file since 7f335a4 was
57dcceb,
checked in by Borja Lopez <borja@…>, 5 years ago
|
(#46) - Move session_factory and authn_policy salt hashes to the config/ini files
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Rev | Line | |
---|
[5934220] | 1 | ### |
---|
| 2 | # app configuration |
---|
| 3 | # https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html |
---|
| 4 | ### |
---|
| 5 | |
---|
| 6 | [app:main] |
---|
| 7 | use = egg:ow |
---|
| 8 | |
---|
| 9 | pyramid.reload_templates = false |
---|
| 10 | pyramid.debug_authorization = false |
---|
| 11 | pyramid.debug_notfound = false |
---|
| 12 | pyramid.debug_routematch = false |
---|
| 13 | pyramid.default_locale_name = en |
---|
| 14 | |
---|
| 15 | # ZODB connection |
---|
| 16 | zodbconn.uri = zeo://%(here)s/var/zeo/zeo.sock?blob_dir=%(here)s/var/zeo/blobs&shared_blob_dir=true&connection_pool_size=20 |
---|
| 17 | |
---|
| 18 | retry.attempts = 3 |
---|
| 19 | |
---|
[57dcceb] | 20 | session.secret = Ir%%TViNv{S%%TuzHfOXZN=4gOu5O/prD\q6As3=GEa8RujI+9f?:[:-tI&KtPWTF8 |
---|
| 21 | auth.secret = wI[/t0Pr9qQsRX?yYInT=+b_:<iySt|b/7?yjRHR5F`[E/MbsUZGtmPw&FZlIu0B |
---|
| 22 | |
---|
| 23 | |
---|
[5934220] | 24 | ### |
---|
| 25 | # wsgi server configuration |
---|
| 26 | ### |
---|
| 27 | |
---|
| 28 | [server:main] |
---|
| 29 | use = egg:waitress#main |
---|
| 30 | listen = localhost:9999 |
---|
| 31 | |
---|
| 32 | ### |
---|
| 33 | # logging configuration |
---|
| 34 | # https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html |
---|
| 35 | ### |
---|
| 36 | |
---|
| 37 | [loggers] |
---|
| 38 | keys = root, ow |
---|
| 39 | |
---|
| 40 | [handlers] |
---|
| 41 | keys = filelog, console |
---|
| 42 | |
---|
| 43 | [formatters] |
---|
| 44 | keys = generic |
---|
| 45 | |
---|
| 46 | [logger_root] |
---|
| 47 | level = WARN |
---|
| 48 | handlers = filelog |
---|
| 49 | |
---|
| 50 | [logger_ow] |
---|
| 51 | level = WARN |
---|
| 52 | handlers = filelog |
---|
| 53 | qualname = ow |
---|
| 54 | |
---|
| 55 | [handler_console] |
---|
| 56 | class = StreamHandler |
---|
| 57 | args = (sys.stderr,) |
---|
| 58 | level = NOTSET |
---|
| 59 | formatter = generic |
---|
| 60 | |
---|
| 61 | [handler_filelog] |
---|
| 62 | class = FileHandler |
---|
| 63 | args = ('%(here)s/var/log/openworkouts.log', 'a') |
---|
| 64 | level = DEBUG |
---|
| 65 | formatter = generic |
---|
| 66 | |
---|
| 67 | [formatter_generic] |
---|
| 68 | format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s |
---|
Note: See
TracBrowser
for help on using the repository browser.