-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathregistry_example.ini
299 lines (240 loc) · 7.89 KB
/
registry_example.ini
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
#
# CKAN - Pylons configuration
#
# These are some of the configuration options available for your CKAN
# instance. Check the documentation in 'doc/configuration.rst' or at the
# following URL for a description of what they do and the full list of
# available options:l
#
# http://docs.ckan.org/en/latest/maintaining/configuration.html
#
# The %(here)s variable will be replaced with the parent directory of this file
#
######### ---
[uwsgi]
username = ckan
base = /srv/app/ckan/registry
master = true
processes = 8
#threads = 2
enable-threads = false
#lazy-apps = true
limit-as = 1536
uid = ckan
gid = ckan
http = 127.0.0.1:5001
socket = 127.0.0.1:8080
virtualenv = /srv/app/ckan/registry
wsgi-file = /srv/app/ckan/registry/wsgi.py
#module = wsgi:application
#callable = application
#strict = true
pidfile = /srv/app/ckan/registry/tmp/%n.pid
max-requests = 1001
vacuum = true
buffer-size = 32768
die-on-term = true
keepalive_timeout = 0
client_max_body_size = 300M
paste-logger = true
logto = /dev/stdout
stdout_logfile = /dev/stdout
stdout_logfile_maxbyte = 0
stderr_logfile = /dev/stderr
stderr_logfile_maxbyte = 0
max-temp-file-size = 1M
manage-script-name = true
######### ---
[pytest]
filterwarnings = ignore:.*PytestUnknownMarkWarning*
[DEFAULT]
debug = true
testing = false
[https]
verify=disable
[server:main]
use = egg:Paste#http
host = ckan
port = 5001
[app:main]
use = egg:ckan
full_stack = true
cache_dir = /srv/app/ckan/registry/tmp/%(ckan.site_id)s/
ckan.plugins = csrf_filter
validation
local_development_theme
datastore
xloader
fluent
scheming_datasets
scheming_organizations
scheming_groups
local_development
dcat
dcat_json_interface
datatables_view
ckan.redis.url = redis://:@redis-devm:6379/2
ckanext.security.domain = 127.0.0.1:5009
ckanext.security.lock_timeout = 300000
ckanext.security.login_max_count = 10
ckanext.security.brute_force_key = user_name
ckanext.security.disable_password_reset_override = true
ckanext.security.disable_totp = true
app_instance_uuid = thisisatotallylegituuid
# repoze.who config
who.config_file = %(here)s/who.ini
who.log_level = warning
who.log_file = /dev/stdout
# Session timeout (user logged out after period of inactivity, in seconds).
# Inactive by default, so the session doesn't expire.
who.timeout = 300000
who.secure = True
## Database Settings
sqlalchemy.url = postgresql://homestead:secret@postgres-devm:5432/og_ckan_registry_local__dev
ckan.datastore.write_url = postgresql://homestead:secret@postgres-devm:5432/og_ckan_registry_ds_local__dev
ckan.datastore.read_url = postgresql://homestead_reader:secret@postgres-devm:5432/og_ckan_registry_ds_local__dev
# xLoader
ckanext.xloader.jobs_db.uri = postgresql://homestead:secret@postgres-devm:5432/og_ckan_registry_local__dev
# PostgreSQL' full-text search parameters
ckan.datastore.default_fts_lang = english
ckan.datastore.default_fts_index_method = gist
## Site Settings
######### ---
ckan.site_url = http://127.0.0.1:5009
ckanext.dcat.base_uri = http://127.0.0.1:5009/{{LANG}}
#ckan.root_path = /data/{{LANG}}
ckan.tracking_enabled = false
wet_theme.geo_map_type = dynamic
wet_boew.jquery.offline = true
######### ---
#ckan.use_pylons_response_cleanup_middleware = true
## Authorization Settings
ckan.auth.anon_create_dataset = false
ckan.auth.create_unowned_dataset = false
ckan.auth.create_dataset_if_not_in_organization = false
ckan.auth.user_create_groups = false
ckan.auth.user_create_organizations = false
ckan.auth.user_delete_groups = true
ckan.auth.user_delete_organizations = true
ckan.auth.create_user_via_api = true
ckan.auth.create_user_via_web = true
ckan.auth.roles_that_cascade_to_sub_groups = admin
ckan.group_and_organization_list_all_fields_max = 1000
## Search Settings
######### --- ckan.site_id = default
ckan.site_id = registry
solr_url = http://solr-devm:8983/solr/ckan_registry
######### ---
#ckan.simple_search = 1
## CORS Settings
# If cors.origin_allow_all is true, all origins are allowed.
# If false, the cors.origin_whitelist is used.
ckan.cors.origin_allow_all = true
# cors.origin_whitelist is a space separated list of allowed domains.
# ckan.cors.origin_whitelist = http://example1.com http://example2.com
# Define which views should be created by default
# (plugins must be loaded in ckan.plugins)
ckan.views.default_views = datatables_view
# image_view
# text_view
# recline_view
ckanext.extractor.indexed_formats = *
beaker.session.secret = thisisalegitsecret
beaker.session.timeout = 300000
beaker.session.validate_key = thisisalegitsecret
ckan.requests.timeout = 300000
###
# Set your cloud storage variables below for your unique storage container.
# The registry.ini and portal.ini should share the same cloud storage container.
###
ckanext.cloudstorage.driver = AZURE_BLOBS
ckanext.cloudstorage.container_name = changeme
ckanext.cloudstorage.driver_options = {"key": "opencanadastaging", "secret": "changeme"}
ckanext.cloudstorage.use_secure_urls = 1
#ckanext.cloudstorage.keep_files = 1
ckanext.cloudstorage.guess_mimetype = 1
ckanext.cloudstorage.connection_link = "updateme"
ckanext.canada.drupal_url = https://open.local
ckanext.canada.drupal_user = admin.local
ckanext.canada.drupal_pass = 12345678
###
# GC Notify Configs
###
ckanext.gcnotify.api_key = changeme
ckanext.gcnotify.base_url = changeme
ckanext.gcnotify.template_id = changeme
scheming.presets = ckanext.scheming:presets.json
ckanext.fluent:presets.json
licenses_group_url = file:////srv/app/ckan/registry/licenses.json
ckan.i18n_directory = /srv/app/ckan/registry/src/ckan/build
extra_public_paths = /srv/app/ckan/static_files/
ckan.activity_streams_email_notifications = false
ckan.datasets_per_page = 10
ckan.user_list_limit = 5
wet_boew.url = http://127.0.0.1:5009
ckan.activity_timestamp_since_limit = 63
ckan.search.show_all_types = true
## Front-End Settings
ckan.site_title = Open Government Portal
ckan.site_logo = ''
ckan.site_description = ''
ckan.favicon = /GCWeb/assets/favicon.ico
ckan.gravatar_default = identicon
ckan.preview.direct = png jpg gif
ckan.preview.loadable = html htm rdf+xml owl+xml xml n3 n-triples turtle plain atom csv tsv rss txt json
ckan.display_timezone = server
## Internationalisation Settings
ckan.locale_default = en
ckan.locale_order = en pt_BR ja it cs_CZ ca es fr el sv sr sr@latin no sk fi ru de pl nl bg ko_KR hu sa sl lv
ckan.locales_offered = en fr
ckan.locales_filtered_out = en_GB
## Feeds Settings
ckan.feeds.authority_name = 'local_dev'
ckan.feeds.date = '2023'
ckan.feeds.author_name = 'Jesse Vickery'
ckan.feeds.author_link = 'https://github.com/JVickery-TBS'
ckan.feeds.pretty = True
## Storage Settings
######### ---
ckan.storage_path = /srv/app/ckan/registry/storage
ckan.max_resource_size = 300
## x-Loader Settings
ckanext.xloader.formats = csv application/csv xls application/vnd.ms-excel
ckanext.xloader.max_content_length = 1000000000
ckanext.xloader.job_timeout = 300000
ckanext.xloader.ignore_hash = True
ckanext.xloader.max_excerpt_lines = 1000000
ckanext.xloader.just_load_with_direct_load = True
ckanext.xloader.ssl_verify = False
ckanext.xloader.site_url = http://127.0.0.1:5001
ckanext.xloader.download_base_uri = 127.0.0.1:5001
ckan.datatables.null_label = N/A
######### ---
ckan.hide_activity_from_users = %(ckan.site_id)s
## Logging configuration
[loggers]
keys = root, ckan, ckanext
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = WARNING
handlers = console
[logger_ckan]
level = INFO
handlers = console
qualname = ckan
propagate = 0
[logger_ckanext]
level = DEBUG
handlers = console
qualname = ckanext
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