source: OpenWorkouts-current/staging.ini

current
Last change on this file was 715671f, checked in by Borja Lopez <borja@…>, 3 years ago

(#77) Bulk workouts upload:

  • Added methods to extract files from compressed bulk files, then load workouts from those files.
  • Added a task to process/load workouts from "not loaded" bulk files
  • Added full tests coverage
  • Property mode set to 100644
File size: 2.0 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# workout bulk loading tasks
33workouts.bulk_loading_lock = %(here)s/var/run/workout-bulk-loading.lock
34workouts.bulk_tmp_path = %(here)s/var/tmp/bulk
35
36
37###
38# wsgi server configuration
39###
40
41[server:main]
42use = egg:waitress#main
43listen = localhost:9999
44
45###
46# logging configuration
47# https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html
48###
49
50[loggers]
51keys = root, ow, QueueProcessor
52
53[handlers]
54keys = filelog, console, queueprocessor
55
56[formatters]
57keys = generic
58
59[logger_root]
60level = WARN
61handlers = filelog
62
63[logger_ow]
64level = WARN
65handlers = filelog
66qualname = ow
67
68[logger_QueueProcessor]
69level = WARN
70handlers = queueprocessor
71qualname = QueueProcessor
72propagate = 0
73
74[handler_console]
75class = StreamHandler
76args = (sys.stderr,)
77level = NOTSET
78formatter = generic
79
80[handler_filelog]
81class = FileHandler
82args = ('%(here)s/var/log/openworkouts.log', 'a')
83level = DEBUG
84formatter = generic
85
86[handler_queueprocessor]
87class = FileHandler
88args = ('%(here)s/var/log/queueprocessor.log','a')
89level = DEBUG
90formatter = generic
91
92[formatter_generic]
93format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s
Note: See TracBrowser for help on using the repository browser.