currentfeature/docs
Last change
on this file since 1c54633 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.9 KB
|
Line | |
---|
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 | |
---|
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 | # 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 | |
---|
32 | |
---|
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, QueueProcessor |
---|
48 | |
---|
49 | [handlers] |
---|
50 | keys = filelog, console, queueprocessor |
---|
51 | |
---|
52 | [formatters] |
---|
53 | keys = generic |
---|
54 | |
---|
55 | [logger_root] |
---|
56 | level = WARN |
---|
57 | handlers = filelog |
---|
58 | |
---|
59 | [logger_ow] |
---|
60 | level = WARN |
---|
61 | handlers = filelog |
---|
62 | qualname = ow |
---|
63 | |
---|
64 | [logger_QueueProcessor] |
---|
65 | level = WARN |
---|
66 | handlers = queueprocessor |
---|
67 | qualname = QueueProcessor |
---|
68 | propagate = 0 |
---|
69 | |
---|
70 | [handler_console] |
---|
71 | class = StreamHandler |
---|
72 | args = (sys.stderr,) |
---|
73 | level = NOTSET |
---|
74 | formatter = generic |
---|
75 | |
---|
76 | [handler_filelog] |
---|
77 | class = FileHandler |
---|
78 | args = ('%(here)s/var/log/openworkouts.log', 'a') |
---|
79 | level = DEBUG |
---|
80 | formatter = generic |
---|
81 | |
---|
82 | [handler_queueprocessor] |
---|
83 | class = FileHandler |
---|
84 | args = ('%(here)s/var/log/queueprocessor.log','a') |
---|
85 | level = DEBUG |
---|
86 | formatter = generic |
---|
87 | |
---|
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.