source: OpenWorkouts-current/staging.ini @ fcf0ef3

current
Last change on this file since fcf0ef3 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]
7use = egg:ow
8
9pyramid.reload_templates = false
10pyramid.debug_authorization = false
11pyramid.debug_notfound = false
12pyramid.debug_routematch = false
13pyramid.default_locale_name = en
14
15# ZODB connection
16zodbconn.uri = zeo://%(here)s/var/zeo/zeo.sock?blob_dir=%(here)s/var/zeo/blobs&shared_blob_dir=true&connection_pool_size=20
17
18retry.attempts = 3
19
20session.secret = Ir%%TViNv{S%%TuzHfOXZN=4gOu5O/prD\q6As3=GEa8RujI+9f?:[:-tI&KtPWTF8
21auth.secret = wI[/t0Pr9qQsRX?yYInT=+b_:<iySt|b/7?yjRHR5F`[E/MbsUZGtmPw&FZlIu0B
22
23# pyramid_mailer configuration
24mail.default_sender = noreply@openworkouts.org
25mail.queue_path = %(here)s/var/spool/mqueue
26mail.queue_processor_lock = %(here)s/var/run/mail-queue-processor.lock
27mail.host = HOST
28mail.tls = True
29mail.username = USERNAME
30mail.password = PASSWORD
31
32
33###
34# wsgi server configuration
35###
36
37[server:main]
38use = egg:waitress#main
39listen = localhost:9999
40
41###
42# logging configuration
43# https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html
44###
45
46[loggers]
47keys = root, ow, QueueProcessor
48
49[handlers]
50keys = filelog, console, queueprocessor
51
52[formatters]
53keys = generic
54
55[logger_root]
56level = WARN
57handlers = filelog
58
59[logger_ow]
60level = WARN
61handlers = filelog
62qualname = ow
63
64[logger_QueueProcessor]
65level = WARN
66handlers = queueprocessor
67qualname = QueueProcessor
68propagate = 0
69
70[handler_console]
71class = StreamHandler
72args = (sys.stderr,)
73level = NOTSET
74formatter = generic
75
76[handler_filelog]
77class = FileHandler
78args = ('%(here)s/var/log/openworkouts.log', 'a')
79level = DEBUG
80formatter = generic
81
82[handler_queueprocessor]
83class = FileHandler
84args = ('%(here)s/var/log/queueprocessor.log','a')
85level = DEBUG
86formatter = generic
87
88[formatter_generic]
89format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s
Note: See TracBrowser for help on using the repository browser.