forked from openspending/openspending
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevelopment.ini_tmpl
131 lines (100 loc) · 2.84 KB
/
development.ini_tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
#
# openspending-ui - Pylons configuration
#
# The %(here)s variable will be replaced with the parent directory of this file
#
[DEFAULT]
debug = true
[server:main]
use = egg:Paste#http
host = 0.0.0.0
port = 5000
[app:main]
use = egg:openspending
full_stack = true
static_files = true
cache_dir = %(here)s/.pylons_data
beaker.session.key = openspending.ui
beaker.session.secret = ${app_instance_secret}
app_instance_uuid = ${app_instance_uuid}
# ################### #
# OpenSpending config #
# ################### #
# i18n
# lang = en
# Default dataset
# openspending.default_dataset = cra
# Sandbox mode: all users are admins by default
openspending.sandbox_mode = true
# Use celery for background jobs
# openspending.use_celery = true
# Numerous site-configurable strings
# openspending.site_title = OpenSpending
# openspending.site_slogan = Mapping the money.
# openspending.site_logo = /images/datastore-logo.png
# openspending.wiki_link = http://wiki.openspending.org/
# openspending.blog_link = http://wheredoesmymoneygo.org/blog/
# openspending.api_link = http://wiki.openspending.org/API
# openspending.lists_link = http://lists.okfn.org/mailman/listinfo/openspending-discuss
# openspending.forum_link =
# Database
openspending.db.url = sqlite:///%(here)s/db/development.sqlite3
# Solr
openspending.solr.url = http://localhost:8983/solr
# Plugins (space-delimited list)
# openspending.plugins =
# Widgets
openspending.widgets_base = http://assets.openspending.org/widgets
openspending.widgets = treemap bubbletree aggregate_table
# Relative path to static files
# openspending.static_path = /static
# Static file cache version
# openspending.static_cache_version =
# Directory containing migration modules
# openspending.migrate_dir = %(here)s/migration
# ############# #
# Celery config #
# ############# #
broker.host = localhost
#broker.vhost = rabbitmqhost
broker.port = 5672
#broker.user = rabbitmq
#broker.password = qweqwe
celery.imports = openspending.tasks
celery.result.backend = amqp
celery.result.dburi = amqp://
celery.result.serializer = json
celeryd.concurrency = 4
#celeryd.log.file = celeryd.log
celeryd.log.level = debug
celeryd.max.tasks.per.child = 1
#tasks will never be sent to the queue, but executed locally instead.
#celery.always.eager = false
# Logging configuration:
# http://wiki.pylonshq.com/display/pylonsdocs/Logging
[loggers]
keys = root, sqlalchemy, openspending
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = INFO
handlers = console
[logger_openspending]
level = DEBUG
handlers = console
qualname = openspending
propagate = 0
[logger_sqlalchemy]
level = WARN
handlers = console
qualname = sqlalchemy.engine
propagate = 0
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s] %(message)s