/
config.php
570 lines (423 loc) · 19.2 KB
/
config.php
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
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
<?php
$GLOBALS['cfg'] = array();
# Things you may want to change in a hurry
$GLOBALS['cfg']['site_name'] = 'Boundary Issues';
$GLOBALS['cfg']['environment'] = 'dev';
$GLOBALS['cfg']['site_disabled'] = 0;
$GLOBALS['cfg']['site_disabled_retry_after'] = 0; # seconds; if set will return HTTP Retry-After header
# Message is displayed in the nav header in inc_head.txt
$GLOBALS['cfg']['display_message'] = 0;
$GLOBALS['cfg']['display_message_text'] = 'this is still a wet-paint prototype, suggestions and cluebats are welcome but please be gentle';
# Things you'll certainly need to tweak
# See below for details about database password(s)
$GLOBALS['cfg']['db_main'] = array(
'host' => 'localhost',
'name' => 'boundaryissues', # database name
'user' => 'boundaryissues', # database username
'auto_connect' => 0,
);
$GLOBALS['cfg']['db_accounts'] = array(
'host' => 'localhost',
'name' => 'boundaryissues', # database name
'user' => 'boundaryissues', # database username
'auto_connect' => 0,
);
$GLOBALS['cfg']['db_users'] = array(
'host' => array(
1 => 'localhost',
2 => 'localhost',
),
'user' => 'root',
'name' => array(
1 => 'user1',
2 => 'user2',
),
);
$GLOBALS['cfg']['aws']['s3_bucket'] = 'whosonfirst.mapzen.com';
$GLOBALS['cfg']['aws']['access_key'] = 'READ-FROM-SECRETS';
$GLOBALS['cfg']['aws']['access_secret'] = 'READ-FROM-SECRETS';
# Configure user access by role and capability. If a user is a member of
# a given role (as defined in the `users_roles` database table), then
# checks for access will try to match the list of capabilities avail-
# able to their roles.
# The role is free-form text, they just get matched to what's in the
# users_role in the DB. Capabilities are constrained to a set of known
# values:
# * can_edit_all_repos
# * can_edit_[repo]
# (20161212/dphiffer)
$GLOBALS['cfg']['users_acl'] = array(
/*
'[role]' => array(
'capability 1',
'capability 2',
),
*/
'admin' => array(
'can_edit_all_repos',
'can_invite_users',
'can_upload_pipelines',
'can_view_pipelines',
'can_view_offline_tasks',
'can_view_repos',
'can_github_oauth',
'can_get_repo_status',
'can_set_repo_status',
),
'staff' => array(
'can_edit_all_repos',
'can_upload_pipelines',
'can_view_pipelines',
'can_view_repos',
'can_get_repo_status',
'can_set_repo_status',
),
'users' => array(
'can_edit_whosonfirst-data-venue-*'
),
);
// See also: remote_addr() in init.php
$GLOBALS['cfg']['remote_addr_index'] = 0;
# This is a kludge-y way to constrain search results on a per-user
# basis. That's right, it's just hardcoded here by user ID. At some
# point this should be configurable through an actual web-based UI,
# but for now it'll help reduce irrelevant search results.
# Related: $GLOBALS['cfg']['search_query_filter'],
# $GLOBALS['cfg']['enable_feature_filter_search'] (20170213/dphiffer)
$GLOBALS['cfg']['users_search_scope'] = array(
# [user id] => [wof id]
);
# Hey look! See the enable_feature_multi_repo flag below? If you enable that
# just make sure to include the __REPO__ placeholder in the wof_data_dir
# config. Ex: /usr/local/data/__REPO__/data/ (20161108/dphiffer)
$GLOBALS['cfg']['enable_feature_multi_repo'] = 1;
$GLOBALS['cfg']['wof_data_dir'] = '/usr/local/data/__REPO__/data/';
$GLOBALS['cfg']['wof_pending_dir'] = '/usr/local/mapzen/whosonfirst-www-boundaryissues/pending/';
$GLOBALS['cfg']['enable_feature_pipeline'] = false;
$GLOBALS['cfg']['enable_feature_geotagged_photos'] = false;
$GLOBALS['cfg']['enable_feature_save_via_github_api'] = false;
$GLOBALS['cfg']['wof_github_owner'] = 'whosonfirst-data';
$GLOBALS['cfg']['enable_feature_invite_codes'] = 1;
$GLOBALS['cfg']['invite_codes_allow_signedin_users'] = 1;
$GLOBALS['cfg']['geojson_base_url'] = 'http://localhost:8181';
$GLOBALS['cfg']['dbug_log'] = '/var/log/boundaryissues_dbug.log';
$GLOBALS['cfg']['gearman_log'] = '/var/log/boundaryissues_gearman.log';
$GLOBALS['cfg']['gearman_client_timeout'] = 3000;
// Elasticsearch defaults
$GLOBALS['cfg']['elasticsearch_host'] = 'localhost';
$GLOBALS['cfg']['elasticsearch_port'] = '9200';
$GLOBALS['cfg']['elasticsearch_http_timeout'] = 10;
// WOF-specific ES settings
$GLOBALS['cfg']['wof_elasticsearch_index'] = 'boundaryissues';
$GLOBALS['cfg']['wof_elasticsearch_host'] = 'localhost';
$GLOBALS['cfg']['wof_elasticsearch_port'] = '9200';
// Offline Tasks-specific ES settings
$GLOBALS['cfg']['offline_tasks_elasticsearch_index'] = 'offline_tasks';
$GLOBALS['cfg']['offline_tasks_elasticsearch_host'] = 'localhost';
$GLOBALS['cfg']['offline_tasks_elasticsearch_port'] = '9200';
// Audit Trail-specific ES settings
$GLOBALS['cfg']['enable_feature_audit_trail'] = false;
$GLOBALS['cfg']['audit_trail_elasticsearch_index'] = 'audit_trail';
$GLOBALS['cfg']['audit_trail_elasticsearch_host'] = 'localhost';
$GLOBALS['cfg']['audit_trail_elasticsearch_port'] = '9200';
// Spelunker-specific ES settings
$GLOBALS['cfg']['enable_feature_index_spelunker'] = 0;
$GLOBALS['cfg']['spelunker_elasticsearch_index'] = 'spelunker';
$GLOBALS['cfg']['spelunker_elasticsearch_host'] = 'localhost';
$GLOBALS['cfg']['spelunker_elasticsearch_port'] = '9200';
$GLOBALS['cfg']['gearman_host'] = 'localhost';
$GLOBALS['cfg']['gearman_port'] = '4730';
// Put this in your secrets/local config
$GLOBALS['cfg']['enable_feature_photos'] = 0;
$GLOBALS['cfg']['wof_photos_url'] = 'https://whosonfirst.dev.mapzen.com/photos';
$GLOBALS['cfg']['wof_photos_access_token'] = '';
// Also this
$GLOBALS['cfg']['enable_feature_slack_bot'] = false;
$GLOBALS['cfg']['slack_bot_access_token'] = 'READ-FROM-SECRETS';
$GLOBALS['cfg']['slack_bot_webhook_url'] = 'READ-FROM-SECRETS';
$GLOBALS['cfg']['slack_bot_users_list'] = 'schema/slack_users.json';
// Limit editable placetypes (array or false for no limit)
$GLOBALS['cfg']['require_wof_placetypes'] = false;
// Set these ones in secrets/local config too
$GLOBALS['cfg']['enable_feature_libpostal'] = false;
$GLOBALS['cfg']['wof_libpostal_host'] = '';
$GLOBALS['cfg']['wof_postcode_pip_host'] = '';
// Used for the add-a-venue geocoder and WOF API Calls
$GLOBALS['cfg']['mapzen_api_key'] = 'READ-FROM-SECRETS';
$GLOBALS['cfg']['wof_api_base_url'] = 'https://places.mapzen.com/v1';
// CSV upload feature
$GLOBALS['cfg']['enable_feature_csv_upload'] = true;
// Which properties should appear on the page (even if they aren't
// "required")
$GLOBALS['cfg']['wof_default_properties'] = array(
'wof:controlled'
);
// This search query filtering business is here because we've moved
// all our Elasticsearch business onto a single common index, but each
// application is only set up to edit a subset of the documents. The
// 'search_query_filter' config can let us ensure only the parts we
// actually want show up in the results. (20160525/dphiffer)
/* Here's what you might put into the query filter:
$GLOBALS['cfg']['search_query_filter'] = array(
"bool" => array(
"must" => array(
"and" => array(
array("term" => array(
"wof:belongsto" => 85688637
)),
array("term" => array(
"wof:placetype" => "venue"
))
)
)
)
);
*/
$GLOBALS['cfg']['enable_feature_filter_search'] = 0;
$GLOBALS['cfg']['search_query_filter'] = array(); # specify this in local_config_*.php
# hard coding this URL will ensure it works in cron mode too
$GLOBALS['cfg']['server_scheme'] = (isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on')) ? 'https' : 'http';
$GLOBALS['cfg']['server_name'] = isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : 'fake.com';
$GLOBALS['cfg']['server_force_https'] = 0;
$GLOBALS['cfg']['server_ignore_port'] = 1;
$GLOBALS['cfg']['abs_root_url'] = "{$GLOBALS['cfg']['server_scheme']}://{$GLOBALS['cfg']['server_name']}/";
$GLOBALS['cfg']['safe_abs_root_url'] = $GLOBALS['cfg']['abs_root_url'];
# See notes in include/init.php
$GLOBALS['cfg']['enable_feature_abs_root_suffix'] = 1;
$GLOBALS['cfg']['abs_root_suffix'] = "";
$GLOBALS['cfg']['abs_root_suffix_env'] = 'HTTP_X_PROXY_PATH'; # ignored if 'abs_root_suffix' is not empty
$GLOBALS['cfg']['data_abs_root_url'] = "https://whosonfirst.mapzen.com/data/";
# Hard-coding these paths will save some stat() ops
$GLOBALS['cfg']['smarty_template_dir'] = realpath(dirname(__FILE__) . '/../templates/');
$GLOBALS['cfg']['smarty_compile_dir'] = realpath(dirname(__FILE__) . '/../templates_c/');
# These should be left as-is, unless you have an existing password database not using bcrypt and
# you need to do auto-promotion on login.
$GLOBALS['cfg']['passwords_use_module'] = 'bcrypt';
$GLOBALS['cfg']['passwords_allow_promotion'] = false;
$GLOBALS['cfg']['passwords_use_bcrypt'] = true; # deprecated - please set $GLOBALS['cfg']['passwords_module'] instead
# Things you may need to tweak
# Auth roles
$GLOBALS['cfg']['enable_feature_auth_roles_autopromote_staff'] = 0;
$GLOBALS['cfg']['enable_feature_auth_roles_autopromote_staff_dev'] = 0;
$GLOBALS['cfg']['enable_feature_auth_roles_autopromote_staff_shell'] = 0;
# Caching stuff
$GLOBALS['cfg']['enable_feature_cache_prefixes'] = 1;
$GLOBALS['cfg']['cache_prefix'] = $GLOBALS['cfg']['environment'];
# Note: memcache stuff is not enabled by default but is
# available in the 'extras' directory
$GLOBALS['cfg']['auth_cookie_domain'] = parse_url($GLOBALS['cfg']['abs_root_url'], 1);
$GLOBALS['cfg']['auth_cookie_name'] = 'boundaryissues';
$GLOBALS['cfg']['auth_cookie_require_https'] = 0;
$GLOBALS['cfg']['crumb_ttl_default'] = 300; # seconds
$GLOBALS['cfg']['rewrite_static_urls'] = array(
# '/foo' => '/bar/',
);
$GLOBALS['cfg']['email_from_name'] = 'flamework app';
$GLOBALS['cfg']['email_from_email'] = 'admin@ourapp.com';
$GLOBALS['cfg']['auto_email_args'] = '-fadmin@ourapp.com';
# Things you can probably not worry about
$GLOBALS['cfg']['user'] = null;
# If you are running Flamework on a host where you can not change the permissions
# on the www/templates_c directory (to be owned by the web server) you'll need to
# do a couple of things. The first is to set the 'smarty_compile' flag to 0. That
# means you'll need to pre-compile all your templates by hand. You can do this with
# 'compile-templates.php' script that is part of Flamework 'bin' directory. Obviously
# this doesn't make much sense if you are actively developing a site but might be
# useful if you've got something working and then just want to run it on a shared
# hosting provider where you can't change the permissions on on files, like pair or
# dreamhost. (20120110/straup)
$GLOBALS['cfg']['smarty_compile'] = 1;
# Do not always compile all the things all the time. Unless you know you're in to
# that kind of thing. One important thing to note about this setting is that you
# will need to reenabled it at least once (and load the template in question) if
# you've got a template that calls a non-standard function. For example, something
# like: {$foo|@bar_all_the_things}
$GLOBALS['cfg']['smarty_force_compile'] = 0;
$GLOBALS['cfg']['http_timeout'] = 3;
$GLOBALS['cfg']['check_notices'] = 1;
$GLOBALS['cfg']['db_profiling'] = 0;
# db_enable_poormans_*
#
# If enabled, then the relevant database configs and handles
# will be automagically prepopulated using the relevant information
# in 'db_main'. Again, see below for database passwords
# You should enable/set these flags if you want to
# use flamework in a setting where you only have access
# to a single database.
$GLOBALS['cfg']['db_enable_poormans_federation'] = 1;
$GLOBALS['cfg']['db_enable_poormans_slaves'] = 0;
$GLOBALS['cfg']['db_poormans_slaves_user'] = '';
# For when you want to use tickets but can't tweak
# your my.cnf file or set up a dedicated ticketing
# server. flamework does not use tickets as part of
# core (yet) so this is really only necessary if your
# application needs db tickets.
$GLOBALS['cfg']['db_enable_poormans_ticketing'] = 1;
# This will assign $pagination automatically for Smarty but
# you probably don't want to do this for anything resembling
# a complex application...
$GLOBALS['cfg']['pagination_assign_smarty_variable'] = 0;
$GLOBALS['cfg']['pagination_per_page'] = 36;
$GLOBALS['cfg']['pagination_spill'] = 2;
$GLOBALS['cfg']['pagination_style'] = 'pretty';
$GLOBALS['cfg']['pagination_keyboard_shortcuts'] = 1;
$GLOBALS['cfg']['pagination_touch_shortcuts'] = 1;
# Feature flags
$GLOBALS['cfg']['enable_feature_signup'] = 1;
$GLOBALS['cfg']['enable_feature_signin'] = 1;
$GLOBALS['cfg']['enable_feature_persistent_login'] = 1;
$GLOBALS['cfg']['enable_feature_account_delete'] = 1;
$GLOBALS['cfg']['enable_feature_password_retrieval'] = 1;
$GLOBALS['cfg']['enable_feature_artisanal_integers'] = 1;
# Enable this flag to show a full call chain (instead of just the
# immediate caller) in database query log messages and embedded in
# the actual SQL sent to the server.
$GLOBALS['cfg']['db_full_callstack'] = 0;
$GLOBALS['cfg']['allow_prefetch'] = 0;
# Load these libraries on every page
$GLOBALS['cfg']['autoload_libs'] = array(
'cache',
'dbug',
'wof_smarty',
'wof_render',
'users_settings',
);
# THINGS YOU SHOULD DEFINE IN YOUR secrets.php FILE WHICH IS NOT
# MEANT TO BE CHECKED IN EVER. DON'T DO IT. AND DON'T DEFINE THESE
# THINGS HERE. REALLY.
$GLOBALS['cfg']['crypto_use_module'] = 'mcrypt';
# $GLOBALS['cfg']['crypto_cookie_secret'] = '';
# $GLOBALS['cfg']['crypto_password_secret'] = '';
# $GLOBALS['cfg']['crypto_crumb_secret'] = '';
# $GLOBALS['cfg']['db_main']['pass'] = '';
# $GLOBALS['cfg']['db_users']['pass'] = '';
# $GLOBALS['cfg']['db_poormans_slaves_pass'] = 'READ-FROM-SECRETS';
# the end
# API methods and "blessings" are defined at the bottom
# API feature flags
$GLOBALS['cfg']['enable_feature_api'] = 1;
$GLOBALS['cfg']['enable_feature_api_documentation'] = 1;
$GLOBALS['cfg']['enable_feature_api_explorer'] = 1;
$GLOBALS['cfg']['enable_feature_api_logging'] = 1;
$GLOBALS['cfg']['enable_feature_api_throttling'] = 0;
$GLOBALS['cfg']['enable_feature_api_require_keys'] = 0; # because oauth2...
$GLOBALS['cfg']['enable_feature_api_register_keys'] = 1;
$GLOBALS['cfg']['enable_feature_api_delegated_auth'] = 1;
$GLOBALS['cfg']['enable_feature_api_authenticate_self'] = 1;
# API URLs and endpoints
$GLOBALS['cfg']['api_abs_root_url'] = ''; # leave blank - set in api_config_init()
$GLOBALS['cfg']['site_abs_root_url'] = ''; # leave blank - set in api_config_init()
$GLOBALS['cfg']['api_subdomain'] = '';
$GLOBALS['cfg']['api_endpoint'] = 'api/rest/';
$GLOBALS['cfg']['api_require_ssl'] = 1;
$GLOBALS['cfg']['api_auth_type'] = 'oauth2';
$GLOBALS['cfg']['api_oauth2_require_authentication_header'] = 0;
$GLOBALS['cfg']['api_oauth2_allow_get_parameters'] = 1;
# API site keys (TTL is measured in seconds)
$GLOBALS['cfg']['enable_feature_api_site_keys'] = 1;
$GLOBALS['cfg']['enable_feature_api_site_tokens'] = 1;
$GLOBALS['cfg']['api_site_keys_ttl'] = 28800; # 8 hours
$GLOBALS['cfg']['api_site_tokens_ttl'] = 28000; # 8 hours
$GLOBALS['cfg']['api_site_tokens_user_ttl'] = 3600; # 1 hour
$GLOBALS['cfg']['api_explorer_keys_ttl'] = 28800; # 8 hours
$GLOBALS['cfg']['api_explorer_tokens_ttl'] = 28000; # 8 hours
$GLOBALS['cfg']['api_explorer_tokens_user_ttl'] = 28000; # 8 hours
# We test this in lib_api_auth_oauth2.php to see whether or
# not we need to throw an error - it's possible that we want
# this to be computed in lib_api_config for example but right
# now we're explicit about everything (20141114/straup)
$GLOBALS['cfg']['enable_feature_api_oauth2_tokens_null_users'] = 1;
# As in API key roles - see also: api_keys_roles_map()
# (20141114/straup)
$GLOBALS['cfg']['api_oauth2_tokens_null_users_allowed_roles'] = array(
'site',
'api_explorer',
'infrastructure',
);
$GLOBALS['cfg']['enable_feature_api_cors'] = 1;
$GLOBALS['cfg']['api_cors_allow_origin'] = '*';
# API pagination
$GLOBALS['cfg']['api_per_page_default'] = 100;
$GLOBALS['cfg']['api_per_page_max'] = 500;
# The actual API config
$GLOBALS['cfg']['api'] = array(
'formats' => array( 'json' ),
'default_format' => 'json',
# We're defining methods using the method_definitions
# hooks defined below to minimize the clutter in the
# main config file, aka this one (20130308/straup)
'methods' => array(),
# We are NOT doing the same for blessed API keys since
# it's expected that their number will be small and
# manageable (20130308/straup)
'blessings' => array(
'xxx-apikey' => array(
'hosts' => array('127.0.0.1'),
# 'tokens' => array(),
# 'environments' => array(),
'methods' => array(
'foo.bar.baz' => array(
'environments' => array('sd-931')
)
),
'method_classes' => array(
'foo.bar' => array(
# see above
)
),
),
),
);
# Load api methods defined in separate PHP files whose naming
# convention is FLAMEWORK_INCLUDE_DIR . "/config_api_{$definition}.php";
#
# IMPORTANT: This is syntactic sugar and helper code to keep the growing
# number of API methods out of the main config. Stuff is loaded in to
# memory in lib_api_config:api_config_init (20130308/straup)
$GLOBALS['cfg']['api_method_definitions'] = array(
'methods',
);
# START OF flamework-github-sso stuff
$GLOBALS['cfg']['github_oauth_key'] = 'READ-FROM-SECRETS';
$GLOBALS['cfg']['github_oauth_secret'] = 'READ-FROM-SECRETS';
$GLOBALS['cfg']['github_api_scope'] = 'repo, user';
$GLOBALS['cfg']['github_oauth_callback'] = 'auth/';
// This one you should generate by visiting "(root url)/github_oauth/"
$GLOBALS['cfg']['github_token'] = 'READ-FROM-SECRETS';
# END OF flamework-github-sso stuff
# START OF flamework-redis stuff
$GLOBALS['cfg']['redis_scheme'] = 'tcp';
$GLOBALS['cfg']['redis_host'] = 'localhost';
$GLOBALS['cfg']['redis_port'] = 6379;
# END OF flamework-redis stuff
# START OF flamework-logstash stuff
$GLOBALS['cfg']['logstash_redis_channel'] = 'flogstash';
$GLOBALS['cfg']['logstash_redis_host'] = 'localhost';
$GLOBALS['cfg']['logstash_redis_port'] = 6379;
# END OF flamework-logstash stuff
# START OF wof-geojson-server stuff
# see also: services/geojson-server
$GLOBALS['cfg']['wof_geojson_server_scheme'] = 'http';
$GLOBALS['cfg']['wof_geojson_server_host'] = 'localhost';
$GLOBALS['cfg']['wof_geojson_server_port'] = 8181;
# END OF wof-geojson-server stuff
# START OF flamework-mapzen-sso stuff
$GLOBALS['cfg']['mapzen_oauth_key'] = 'READ-FROM-SECRETS';
$GLOBALS['cfg']['mapzen_oauth_secret'] = 'READ-FROM-SECRETS';
$GLOBALS['cfg']['mapzen_oauth_callback'] = 'auth/';
$GLOBALS['cfg']['crypto_oauth_cookie_secret'] = 'READ-FROM-SECRETS'; # (see notes in www/sign_oauth.php)
$GLOBALS['cfg']['mapzen_api_perms'] = 'read';
# END OF flamework-mapzen-sso stuff
# START of wof spatial stuff
$GLOBALS['cfg']['enable_feature_spatial'] = 1;
$GLOBALS['cfg']['whosonfirst_spatial_tile38_host'] = 'localhost';
$GLOBALS['cfg']['whosonfirst_spatial_tile38_port'] = '9851';
$GLOBALS['cfg']['whosonfirst_spatial_tile38_collection'] = 'whosonfirst-nearby';
# END of wof spatial stuff
# START OF chatterbox stuff / https://github.com/whosonfirst/go-whosonfirst-chatterbox
$GLOBALS['cfg']['enable_feature_chatterbox'] = 0;
$GLOBALS['cfg']['chatterbox_host'] = '127.0.0.1';
$GLOBALS['cfg']['chatterbox_port'] = '6379';
$GLOBALS['cfg']['chatterbox_channel'] = 'chatterbox';
$GLOBALS['cfg']['chatterbox_destination'] = '';
# END OF chatterbox stuff