[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 |
---|
[2142a49] | 18 | # zodbconn.uri = file://%(here)s/var/db/Data.fs?connection_cache_size=20000&blobstorage_dir=%(here)s/var/db/blobs |
---|
[5ec3a0b] | 19 | # Use this for ZEO |
---|
[2142a49] | 20 | zodbconn.uri = zeo://%(here)s/var/zeo/zeo.sock?blob_dir=%(here)s/var/zeo/blobs&shared_blob_dir=true&connection_pool_size=20 |
---|
[5ec3a0b] | 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 | |
---|
[76ebb1b] | 32 | # pyramid_mailer configuration |
---|
| 33 | mail.default_sender = noreply@openworkouts.org |
---|
| 34 | mail.queue_path = %(here)s/var/spool/mqueue |
---|
| 35 | mail.queue_processor_lock = %(here)s/var/run/mail-queue-processor.lock |
---|
| 36 | mail.host = mail.openworkouts.org |
---|
| 37 | mail.tls = True |
---|
| 38 | mail.username = noreply@openworkouts.org |
---|
| 39 | mail.password = PASSWORD |
---|
| 40 | |
---|
[715671f] | 41 | workouts.bulk_loading_lock = %(here)s/var/run/workout-bulk-loading.lock |
---|
| 42 | workouts.bulk_tmp_path = %(here)s/var/tmp/bulk |
---|
| 43 | |
---|
[57dcceb] | 44 | |
---|
[5ec3a0b] | 45 | ### |
---|
| 46 | # wsgi server configuration |
---|
| 47 | ### |
---|
| 48 | |
---|
| 49 | [server:main] |
---|
| 50 | use = egg:waitress#main |
---|
| 51 | listen = localhost:9999 |
---|
| 52 | |
---|
| 53 | ### |
---|
| 54 | # logging configuration |
---|
| 55 | # https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html |
---|
| 56 | ### |
---|
| 57 | |
---|
| 58 | [loggers] |
---|
[591ae81] | 59 | keys = root, ow, QueueProcessor |
---|
[5ec3a0b] | 60 | |
---|
| 61 | [handlers] |
---|
[591ae81] | 62 | keys = filelog, console, queueprocessor |
---|
[5ec3a0b] | 63 | |
---|
| 64 | [formatters] |
---|
| 65 | keys = generic |
---|
| 66 | |
---|
| 67 | [logger_root] |
---|
| 68 | level = INFO |
---|
[591ae81] | 69 | handlers = filelog, console |
---|
[5ec3a0b] | 70 | |
---|
| 71 | [logger_ow] |
---|
| 72 | level = DEBUG |
---|
| 73 | handlers = |
---|
| 74 | qualname = ow |
---|
| 75 | |
---|
[591ae81] | 76 | [logger_QueueProcessor] |
---|
| 77 | level = DEBUG |
---|
| 78 | handlers = queueprocessor |
---|
| 79 | qualname = QueueProcessor |
---|
| 80 | propagate = 0 |
---|
| 81 | |
---|
[5ec3a0b] | 82 | [handler_console] |
---|
| 83 | class = StreamHandler |
---|
| 84 | args = (sys.stderr,) |
---|
| 85 | level = NOTSET |
---|
| 86 | formatter = generic |
---|
| 87 | |
---|
[591ae81] | 88 | [handler_filelog] |
---|
| 89 | class = FileHandler |
---|
| 90 | args = ('%(here)s/var/log/openworkouts.log', 'a') |
---|
| 91 | level = DEBUG |
---|
| 92 | formatter = generic |
---|
| 93 | |
---|
| 94 | [handler_queueprocessor] |
---|
| 95 | class = FileHandler |
---|
| 96 | args = ('%(here)s/var/log/queueprocessor.log','a') |
---|
| 97 | level = DEBUG |
---|
| 98 | formatter = generic |
---|
| 99 | |
---|
[5ec3a0b] | 100 | [formatter_generic] |
---|
| 101 | format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s |
---|