[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 | |
---|
[93c19e4] | 23 | # pyramid_mailer configuration |
---|
| 24 | mail.default_sender = noreply@openworkouts.org |
---|
| 25 | mail.queue_path = %(here)s/var/spool/mqueue |
---|
| 26 | mail.queue_processor_lock = %(here)s/var/run/mail-queue-processor.lock |
---|
| 27 | mail.host = HOST |
---|
| 28 | mail.tls = True |
---|
| 29 | mail.username = USERNAME |
---|
| 30 | mail.password = PASSWORD |
---|
| 31 | |
---|
[715671f] | 32 | # workout bulk loading tasks |
---|
| 33 | workouts.bulk_loading_lock = %(here)s/var/run/workout-bulk-loading.lock |
---|
| 34 | workouts.bulk_tmp_path = %(here)s/var/tmp/bulk |
---|
| 35 | |
---|
[57dcceb] | 36 | |
---|
[5934220] | 37 | ### |
---|
| 38 | # wsgi server configuration |
---|
| 39 | ### |
---|
| 40 | |
---|
| 41 | [server:main] |
---|
| 42 | use = egg:waitress#main |
---|
| 43 | listen = localhost:9999 |
---|
| 44 | |
---|
| 45 | ### |
---|
| 46 | # logging configuration |
---|
| 47 | # https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html |
---|
| 48 | ### |
---|
| 49 | |
---|
| 50 | [loggers] |
---|
[93c19e4] | 51 | keys = root, ow, QueueProcessor |
---|
[5934220] | 52 | |
---|
| 53 | [handlers] |
---|
[93c19e4] | 54 | keys = filelog, console, queueprocessor |
---|
[5934220] | 55 | |
---|
| 56 | [formatters] |
---|
| 57 | keys = generic |
---|
| 58 | |
---|
| 59 | [logger_root] |
---|
| 60 | level = WARN |
---|
| 61 | handlers = filelog |
---|
| 62 | |
---|
| 63 | [logger_ow] |
---|
| 64 | level = WARN |
---|
| 65 | handlers = filelog |
---|
| 66 | qualname = ow |
---|
| 67 | |
---|
[93c19e4] | 68 | [logger_QueueProcessor] |
---|
| 69 | level = WARN |
---|
| 70 | handlers = queueprocessor |
---|
| 71 | qualname = QueueProcessor |
---|
| 72 | propagate = 0 |
---|
| 73 | |
---|
[5934220] | 74 | [handler_console] |
---|
| 75 | class = StreamHandler |
---|
| 76 | args = (sys.stderr,) |
---|
| 77 | level = NOTSET |
---|
| 78 | formatter = generic |
---|
| 79 | |
---|
| 80 | [handler_filelog] |
---|
| 81 | class = FileHandler |
---|
| 82 | args = ('%(here)s/var/log/openworkouts.log', 'a') |
---|
| 83 | level = DEBUG |
---|
| 84 | formatter = generic |
---|
| 85 | |
---|
[93c19e4] | 86 | [handler_queueprocessor] |
---|
| 87 | class = FileHandler |
---|
| 88 | args = ('%(here)s/var/log/queueprocessor.log','a') |
---|
| 89 | level = DEBUG |
---|
| 90 | formatter = generic |
---|
| 91 | |
---|
[5934220] | 92 | [formatter_generic] |
---|
| 93 | format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s |
---|