current
Last change
on this file since 9f3c353 was
93c19e4,
checked in by Borja Lopez <borja@…>, 5 years ago
|
Added the pyramid_mailer settings to staging.ini and production.ini
Added the mail queue processor log settings to staging.ini and production.ini
|
-
Property mode set to
100644
|
File size:
1.8 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 = false |
---|
| 10 | pyramid.debug_authorization = false |
---|
| 11 | pyramid.debug_notfound = false |
---|
| 12 | pyramid.debug_routematch = false |
---|
| 13 | pyramid.default_locale_name = en |
---|
| 14 | |
---|
[93bbb89] | 15 | # ZODB connection |
---|
| 16 | 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 |
---|
[5ec3a0b] | 17 | |
---|
| 18 | retry.attempts = 3 |
---|
| 19 | |
---|
[57dcceb] | 20 | session.secret = SET_THIS_BEFORE_RUNNING_THE_APP |
---|
| 21 | auth.secret = SET_THIS_BEFORE_RUNNING_THE_APP |
---|
| 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 | |
---|
[57dcceb] | 32 | |
---|
[5ec3a0b] | 33 | ### |
---|
| 34 | # wsgi server configuration |
---|
| 35 | ### |
---|
| 36 | |
---|
| 37 | [server:main] |
---|
| 38 | use = egg:waitress#main |
---|
| 39 | listen = *:6543 |
---|
| 40 | |
---|
| 41 | ### |
---|
| 42 | # logging configuration |
---|
| 43 | # https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html |
---|
| 44 | ### |
---|
| 45 | |
---|
| 46 | [loggers] |
---|
[93c19e4] | 47 | keys = root, ow, QueueProcessor |
---|
[5ec3a0b] | 48 | |
---|
| 49 | [handlers] |
---|
[93c19e4] | 50 | keys = filelog, console, queueprocessor |
---|
[5ec3a0b] | 51 | |
---|
| 52 | [formatters] |
---|
| 53 | keys = generic |
---|
| 54 | |
---|
| 55 | [logger_root] |
---|
| 56 | level = WARN |
---|
[93bbb89] | 57 | handlers = filelog |
---|
[5ec3a0b] | 58 | |
---|
| 59 | [logger_ow] |
---|
| 60 | level = WARN |
---|
[93bbb89] | 61 | handlers = filelog |
---|
[5ec3a0b] | 62 | qualname = ow |
---|
| 63 | |
---|
[93c19e4] | 64 | [logger_QueueProcessor] |
---|
| 65 | level = WARN |
---|
| 66 | handlers = queueprocessor |
---|
| 67 | qualname = QueueProcessor |
---|
| 68 | propagate = 0 |
---|
| 69 | |
---|
[5ec3a0b] | 70 | [handler_console] |
---|
| 71 | class = StreamHandler |
---|
| 72 | args = (sys.stderr,) |
---|
| 73 | level = NOTSET |
---|
| 74 | formatter = generic |
---|
| 75 | |
---|
[93bbb89] | 76 | [handler_filelog] |
---|
| 77 | class = FileHandler |
---|
| 78 | args = ('%(here)s/var/log/openworkouts.log', 'a') |
---|
| 79 | level = DEBUG |
---|
| 80 | formatter = generic |
---|
| 81 | |
---|
[93c19e4] | 82 | [handler_queueprocessor] |
---|
| 83 | class = FileHandler |
---|
| 84 | args = ('%(here)s/var/log/queueprocessor.log','a') |
---|
| 85 | level = DEBUG |
---|
| 86 | formatter = generic |
---|
| 87 | |
---|
[5ec3a0b] | 88 | [formatter_generic] |
---|
| 89 | format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s |
---|
Note: See
TracBrowser
for help on using the repository browser.