currentfeature/docs
Last change
on this file since 23b5569 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.6 KB
|
Rev | Line | |
---|
[5ec3a0b] | 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 = true |
---|
| 10 | pyramid.debug_authorization = false |
---|
| 11 | pyramid.debug_notfound = false |
---|
| 12 | pyramid.debug_routematch = false |
---|
| 13 | pyramid.default_locale_name = en |
---|
[929097a] | 14 | #pyramid.includes = |
---|
| 15 | # pyramid_debugtoolbar |
---|
[5ec3a0b] | 16 | |
---|
| 17 | # Use this for local, single-process pserve database access |
---|
| 18 | zodbconn.uri = file://%(here)s/var/db/Data.fs?connection_cache_size=20000&blobstorage_dir=%(here)s/var/db/blobs |
---|
| 19 | # Use this for ZEO |
---|
| 20 | # zodbconn.uri = zeo://%(here)s/var/zeo/zeo.sock?storage=main&blob_dir=%(here)s/var/zeo/blobs&shared_blob_dir=true&connection_pool_size=20 |
---|
| 21 | |
---|
| 22 | retry.attempts = 3 |
---|
| 23 | |
---|
| 24 | # By default, the toolbar only appears for clients from IP addresses |
---|
| 25 | # '127.0.0.1' and '::1'. |
---|
| 26 | # debugtoolbar.hosts = 127.0.0.1 ::1 |
---|
| 27 | |
---|
[57dcceb] | 28 | # session and auth secret hashes (used in ow/__init__.py) |
---|
| 29 | session.secret = V4j:DL12^Gs//ho5)V94$j"Ue"F%%wn{BT]KrSx`b3pmRj<Z&e3QP|fgPGEZT@\# |
---|
| 30 | auth.secret = l9|^@~wQoVKPQoI`GHK5M9ps@S7L:QNU?pF}.jI(9RWZVc<EM)aQv/j~l\#xC++;5 |
---|
| 31 | |
---|
| 32 | |
---|
[5ec3a0b] | 33 | ### |
---|
| 34 | # wsgi server configuration |
---|
| 35 | ### |
---|
| 36 | |
---|
| 37 | [server:main] |
---|
| 38 | use = egg:waitress#main |
---|
| 39 | listen = localhost:9999 |
---|
| 40 | |
---|
| 41 | ### |
---|
| 42 | # logging configuration |
---|
| 43 | # https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html |
---|
| 44 | ### |
---|
| 45 | |
---|
| 46 | [loggers] |
---|
| 47 | keys = root, ow |
---|
| 48 | |
---|
| 49 | [handlers] |
---|
| 50 | keys = console |
---|
| 51 | |
---|
| 52 | [formatters] |
---|
| 53 | keys = generic |
---|
| 54 | |
---|
| 55 | [logger_root] |
---|
| 56 | level = INFO |
---|
| 57 | handlers = console |
---|
| 58 | |
---|
| 59 | [logger_ow] |
---|
| 60 | level = DEBUG |
---|
| 61 | handlers = |
---|
| 62 | qualname = ow |
---|
| 63 | |
---|
| 64 | [handler_console] |
---|
| 65 | class = StreamHandler |
---|
| 66 | args = (sys.stderr,) |
---|
| 67 | level = NOTSET |
---|
| 68 | formatter = generic |
---|
| 69 | |
---|
| 70 | [formatter_generic] |
---|
| 71 | format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s |
---|
Note: See
TracBrowser
for help on using the repository browser.