source: OpenWorkouts-current/development.ini @ 715671f

current
Last change on this file since 715671f was 715671f, checked in by Borja Lopez <borja@…>, 4 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.4 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 = true
10pyramid.debug_authorization = false
11pyramid.debug_notfound = false
12pyramid.debug_routematch = false
13pyramid.default_locale_name = en
14#pyramid.includes =
15#    pyramid_debugtoolbar
16
17# Use this for local, single-process pserve database access
18# zodbconn.uri = file://%(here)s/var/db/Data.fs?connection_cache_size=20000&blobstorage_dir=%(here)s/var/db/blobs
19# Use this for ZEO
20zodbconn.uri = zeo://%(here)s/var/zeo/zeo.sock?blob_dir=%(here)s/var/zeo/blobs&shared_blob_dir=true&connection_pool_size=20
21
22retry.attempts = 3
23
24# By default, the toolbar only appears for clients from IP addresses
25# '127.0.0.1' and '::1'.
26# debugtoolbar.hosts = 127.0.0.1 ::1
27
28# session and auth secret hashes (used in ow/__init__.py)
29session.secret = V4j:DL12^Gs//ho5)V94$j"Ue"F%%wn{BT]KrSx`b3pmRj<Z&e3QP|fgPGEZT@\#
30auth.secret = l9|^@~wQoVKPQoI`GHK5M9ps@S7L:QNU?pF}.jI(9RWZVc<EM)aQv/j~l\#xC++;5
31
32# pyramid_mailer configuration
33mail.default_sender = noreply@openworkouts.org
34mail.queue_path = %(here)s/var/spool/mqueue
35mail.queue_processor_lock = %(here)s/var/run/mail-queue-processor.lock
36mail.host = mail.openworkouts.org
37mail.tls = True
38mail.username = noreply@openworkouts.org
39mail.password = PASSWORD
40
41workouts.bulk_loading_lock = %(here)s/var/run/workout-bulk-loading.lock
42workouts.bulk_tmp_path = %(here)s/var/tmp/bulk
43
44
45###
46# wsgi server configuration
47###
48
49[server:main]
50use = egg:waitress#main
51listen = localhost:9999
52
53###
54# logging configuration
55# https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html
56###
57
58[loggers]
59keys = root, ow, QueueProcessor
60
61[handlers]
62keys = filelog, console, queueprocessor
63
64[formatters]
65keys = generic
66
67[logger_root]
68level = INFO
69handlers = filelog, console
70
71[logger_ow]
72level = DEBUG
73handlers =
74qualname = ow
75
76[logger_QueueProcessor]
77level = DEBUG
78handlers = queueprocessor
79qualname = QueueProcessor
80propagate = 0
81
82[handler_console]
83class = StreamHandler
84args = (sys.stderr,)
85level = NOTSET
86formatter = generic
87
88[handler_filelog]
89class = FileHandler
90args = ('%(here)s/var/log/openworkouts.log', 'a')
91level = DEBUG
92formatter = generic
93
94[handler_queueprocessor]
95class = FileHandler
96args = ('%(here)s/var/log/queueprocessor.log','a')
97level = DEBUG
98formatter = generic
99
100[formatter_generic]
101format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s
Note: See TracBrowser for help on using the repository browser.