forked from sverhoeven/docker-cartodb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app_config.yml
573 lines (567 loc) · 21.1 KB
/
app_config.yml
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
571
572
573
defaults: &defaults
# If uncommented, most images like static map previews and twitter card image urls will use this CDN urls
#cdn_url:
# http: "http.cdn.host"
# https: "https.cdn.host"
http_client_logs: true
ogr2ogr:
binary: 'which ogr2ogr2'
csv_guessing: true
debug_assets: true
mandatory_keys: [layer_opts, sql_api, varnish_management, redis, session_domain]
session_domain: 'cartodb.localhost'
# If activated, urls will use usernames in format //SESSION_DOMAIN/user/USERNAME and ignore subdomains if present
subdomainless_urls: true
http_port: # 3000 # nil|integer. HTTP port to use when building urls. Leave empty to use default (80)
https_port: # nil|integer. HTTPS port to use when building urls. Leave empty to use default (443)
secret_token: '71c2b25921b84a1cb21c71503ab8fb23'
account_host: 'cartodb.localhost:3000'
account_path: '/account'
vizjson_cache_domains: ['.localhost']
data_library:
username: 'common-data'
path: '/data-library'
disable_file: '~/disable'
watcher:
ttl: 60
tiler:
filter: 'mapnik'
internal:
protocol: 'http'
domain: 'cartodb.localhost'
port: '80'
verifycert: false
private:
protocol: 'http'
domain: 'cartodb.localhost'
port: '80'
verifycert: false
public:
protocol: 'http'
domain: 'cartodb.localhost'
port: '80'
verifycert: false
sql_api:
private:
protocol: 'http'
domain: 'cartodb.localhost'
endpoint: '/api/v2/sql'
port: 80
public:
protocol: 'http'
domain: 'cartodb.localhost'
endpoint: '/api/v2/sql'
port: 80
api_requests_service_url: ''
developers_host: 'http://developers.cartodb.localhost:3000'
google_analytics:
primary: ''
embeds: ''
domain: ''
rollbar_api_key: ''
tumblr:
api_key: ''
trackjs:
enabled: false
customer: ''
app_keys:
editor: ''
embeds: ''
#fullstory:
#org: 'XXXXX'
facebook:
app_id: ''
admins: ''
hubspot: ''
segment:
api_key:
metrics:
hubspot:
events_host: ''
token: ''
form_ids:
newsletter: ''
event_ids:
import_failed: ''
geocoding_failed: ''
import_success: ''
geocoding_success: ''
published_visualization: ''
visited_dashboard: ''
connect_dataset: ''
create_map: ''
export_table: ''
export_map: ''
export_public_map: ''
select_wms: ''
color_basemap: ''
pattern_basemap: ''
geocoding: ''
visual_merge: ''
common_data: ''
cartocss_manually: ''
wizard: ''
filter: ''
query: ''
applied_sql: ''
applied_cartocss: ''
modified_style_form: ''
completed_connection: ''
failed_connection: ''
created_analysis: ''
modified_analysis: ''
published_map: ''
exported_map: ''
mailing_track:
like_map: ''
trending_map: ''
common_data:
protocol: 'https'
username: 'common-data'
base_url: 'https://common-data.carto.com'
format: 'shp'
generate_every: 86400
explore_api:
username: ''
reports:
mail_to: ''
mailer:
from: 'cartodb.localhost <support@cartodb.localhost>'
address: ''
port: ''
user_name: ''
password: ''
authentication: ''
enable_starttls_auto: ''
varnish_management:
critical: false
host: '127.0.0.1'
port: 6082
purge_command: 'purge'
retries: 5
timeout: 5
# 'warning' or 'error'
trigger_verbose: true
invalidation_service:
enabled: false
host: '127.0.0.1'
port: 3142
retries: 5 # number of retries before considering failure
critical: false # either the failure is considered an error or a warning
timeout: 5 # socket timeout
trigger_verbose: true
redis:
host: '127.0.0.1'
port: 6379
connect_timeout: 2
read_timeout: 3
write_timeout: 5
databases:
tables_metadata: 0
api_credentials: 3
users_metadata: 5
redis_migrator_logs: 6
org_metadata_api:
host: 'localhost.lan'
port: '3000'
username: "extension"
password: "elephant"
timeout: 10
superadmin:
username: "superadmin"
password: "monkey"
geocoder:
#force_batch: true
#disable_cache: true
app_id: ''
token: ''
mailto: ''
base_url: ''
non_batch_base_url: ''
internal:
username: ''
api_key: ''
cache:
base_url: ''
api_key: ''
table_name: ''
user_migrator:
user_exports_folder: '/tmp/user_exports'
user_imports_folder: '/tmp/user_imports'
s3:
access_key_id: ''
secret_access_key: ''
bucket_name: ''
url_ttl: 7200
async_long_uploads: false
uploads_path: 'public/uploads'
exporter:
exporter_temporal_folder: '/tmp/exporter'
s3:
access_key_id: ''
secret_access_key: ''
bucket_name: ''
url_ttl: 7200
async_long_uploads: false
s3_endpoint: ''
uploads_path: 'public/uploads' # including 'uploads' assumes public path. Absolute path example: /tmp/exports/downloads
importer:
blacklisted_ip_addr: []
content_guessing: # Depends on geocoding
enabled: false # Disabled if false or not present
threshold: 0.9 # 90% or more matches
minimum_entropy: 0.9 # Normalized entropy, between 0.0 and 1.0. See http://en.wikipedia.org/wiki/Entropy_(information_theory)
sample_size: 400 # +-5% error. See http://en.wikipedia.org/wiki/Sample_size_determination#Estimating_proportions_and_means
s3:
access_key_id:
secret_access_key:
bucket_name:
url_ttl:
async_long_uploads: false
proxy_uri:
use_ssl: True
s3_endpoint: ''
unp_temporal_folder: '/tmp/imports/'
# It must end in `/uploads` and be accessible via HTTP, if relative will default to Rails.Root/#{uploads_path}
uploads_path: 'public/uploads'
error_track:
url: 'https://viz2.carto.com/api/v1/sql'
percent_users: 10
# graphite endpoint used to post frontend stats
graphite_public:
host: ""
port:
layer_opts:
public_opts: ["type", "active", "query", "opacity", "auto_bound",
"interactivity", "debug", "visible", "tiler_domain",
"tiler_port", "tiler_protocol", "sql_domain", "sql_port",
"sql_protocol", "extra_params", "table_name",
"user_name", "style_version", "tile_style", "query_wrapper"]
default_tile_styles:
point: "{\n marker-fill: #FF6600;\n marker-opacity: 0.9;\n marker-width: 12;\n marker-line-color: white;\n marker-line-width: 3;\n marker-line-opacity: 0.9;\n marker-placement: point;\n marker-type: ellipse;\n marker-allow-overlap: true;\n}"
geometry: "{\n // points\n [mapnik-geometry-type=point] {\n marker-fill: #FF6600;\n marker-opacity: 1;\n marker-width: 12;\n marker-line-color: white;\n marker-line-width: 3;\n marker-line-opacity: 0.9;\n marker-placement: point;\n marker-type: ellipse;marker-allow-overlap: true;\n }\n\n //lines\n [mapnik-geometry-type=linestring] {\n line-color: #FF6600; \n line-width: 2; \n line-opacity: 0.7;\n }\n\n //polygons\n [mapnik-geometry-type=polygon] {\n polygon-fill:#FF6600;\n polygon-opacity: 0.7;\n line-opacity:1;\n line-color: #FFFFFF;\n }\n }"
polygon: "{\n polygon-fill:#FF6600;\n polygon-opacity: 0.7;\n line-opacity:1;\n line-color: #FFFFFF;\n}"
multipolygon: "{\n polygon-fill:#FF6600;\n polygon-opacity: 0.7;\n line-opacity:1;\n line-color: #FFFFFF;\n}"
multilinestring: "{\n line-color:#FF6600;\n line-width:1;\n line-opacity: 0.7;\n}"
data:
kind: "carto"
options:
# attribution: 'CARTO attribution'
query: ""
opacity: 0.99
auto_bound: false
interactivity: "cartodb_id"
debug: false
visible: true
tiler_domain: "cartodb.localhost"
tiler_port: "80"
tiler_protocol: "http"
sql_domain: "cartodb.localhost"
sql_port: "80"
sql_protocol: "http"
extra_params: { cache_policy: 'persist' }
tile_style_history: []
style_version: "2.1.1"
infowindow:
template_name: "table/views/infowindow_light"
background:
kind: "background"
options: { color: '#ffffff' }
cartodb_com_hosted: false
cartodb_central_domain_name: 'cartodb.localhost'
aws:
s3:
access_key_id: "test"
secret_access_key: "test"
assets:
s3_bucket_name: "tests"
max_file_size: 5242880 # 5.megabytes
# Example for configuring organization assets.
# If 'aws.s3' configuration exists, S3 is used for storing assets and 'assets.organization.bucket' value is required. If 'aws.s3' config is not present, assets will be stored locally.
# organization:
# bucket: "tests" # Required if 'aws.s3' config is present. Bucket must exist beforehand. If no 'aws.s3' config is present, organization assets will be stored locally and this line is not needed.
# max_size_in_bytes: 1048576 # Optional, default is 1 MB
# location: 'organization_assets' # Optional subdirectory for local assets, default is 'organization_assets'
app_assets:
asset_host: "//cartodb.localhost"
avatars:
gravatar_enabled: true
base_url: '/assets/unversioned/images/avatars'
kinds: ['ghost', 'heart', 'marker', 'mountain', 'pacman', 'planet', 'star']
colors: ['green', 'orange', 'red', 'yellow']
dropbox_api_key: ""
gdrive:
api_key: ""
app_id: ""
# This enables a support chat within editor
# Use your Olark api id to enable it. If you remove this entry or don't define an app key, it won't be activated.
olark:
app_id: ''
enforce_non_empty_layer_css: false
users_dumps:
service:
port: 00000
http_header_authentication:
header: # name of the trusted, safe header that your server adds to the request
field: # 'email' / 'username' / 'id' / 'auto' (autodetection)
autocreation: # true / false (true requires field to be email)
oauth:
# If the client_id/app_key is not set won't appear at the UI. @see application_helper.rb -> frontend_config
# Must be the same as CartoDB::Datasources::xxxx DATASOURCE_NAME constants
gdrive:
application_name: ''
client_id: ''
client_secret: ''
callback_url: 'https://carto.com'
# google_plus:
# client_id: ''
# cookie_policy: 'single_host_origin'
# cookie_policy: 'https://cartodb-staging.com'
github:
client_id: ''
client_secret: ''
dropbox:
app_key: ''
app_secret: ''
callback_url: ''
box:
application_name: ''
client_id: ''
client_secret: ''
box_host: "app.box.com"
instagram:
app_key: ''
app_secret: ''
callback_url: ''
# Mailchimp datasource. Setup at https://admin.mailchimp.com/account/oauth2/ then fill here.
# If fields are present but empty, option won't appear at editor import window
mailchimp:
app_key: ''
app_secret: ''
callback_url: ''
datasource_search:
# Must be the same as CartoDB::Datasources::xxxx DATASOURCE_NAME constants
twitter_search:
standard:
auth_required: false
username: ''
password: ''
search_url: 'http://fake.url.nil'
ratelimit_active: true
ratelimit_concurrency: 8
ratelimit_ttl: 4
ratelimit_wait_secs: 0.5
customized_user_list: []
customized_orgs_list: []
entity_to_config_map: [] # { user_or_org_name: 'custom_config_name'}
customized:
custom1:
auth_required: false
username: ''
password: ''
search_url: 'http://fake.url.nil'
ratelimit_active: false
ratelimit_concurrency: 3
ratelimit_ttl: 4
ratelimit_wait_secs: 0.1
datasources:
arcgis_enabled: false
salesforce_enabled: false
basemaps:
CARTO:
positron_rainbow_labels:
default: true
url: 'http://{s}.basemaps.cartocdn.com/light_nolabels/{z}/{x}/{y}.png'
subdomains: 'abcd'
minZoom: '0'
maxZoom: '18'
name: 'Positron'
className: 'positron_rainbow_labels'
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors © <a href="https://carto.com/attributions">CARTO</a>'
labels:
url: 'http://{s}.basemaps.cartocdn.com/light_only_labels/{z}/{x}/{y}.png'
dark_matter_rainbow_labels:
url: 'http://{s}.basemaps.cartocdn.com/dark_nolabels/{z}/{x}/{y}.png'
subdomains: 'abcd'
minZoom: '0'
maxZoom: '18'
name: 'Dark matter'
className: 'dark_matter_rainbow_labels'
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors © <a href="https://carto.com/attributions">CARTO</a>'
labels:
url: 'http://{s}.basemaps.cartocdn.com/dark_only_labels/{z}/{x}/{y}.png'
positron_rainbow:
url: 'http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png'
subdomains: 'abcd'
minZoom: '0'
maxZoom: '18'
name: 'Positron (labels below)'
className: 'positron_rainbow'
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors © <a href="https://carto.com/attributions">CARTO</a>'
dark_matter_rainbow:
url: 'http://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png'
subdomains: 'abcd'
minZoom: '0'
maxZoom: '18'
name: 'Dark matter (labels below)'
className: 'dark_matter_rainbow'
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors © <a href="https://carto.com/attributions">CARTO</a>'
positron_lite_rainbow:
url: 'http://{s}.basemaps.cartocdn.com/light_nolabels/{z}/{x}/{y}.png'
subdomains: 'abcd'
minZoom: '0'
maxZoom: '18'
name: 'Positron (lite)'
className: 'positron_lite_rainbow'
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors © <a href="https://carto.com/attributions">CARTO</a>'
dark_matter_lite_rainbow:
url: 'http://{s}.basemaps.cartocdn.com/dark_nolabels/{z}/{x}/{y}.png'
subdomains: 'abcd'
minZoom: '0'
maxZoom: '18'
name: 'Dark matter (lite)'
className: 'dark_matter_lite_rainbow'
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors © <a href="https://carto.com/attributions">CARTO</a>'
eco_cartodb:
url: 'https://cartocdn_{s}.global.ssl.fastly.net/base-antique/{z}/{x}/{y}.png'
subdomains: 'abcd'
minZoom: '0'
maxZoom: '10'
name: 'CARTO World Eco'
className: 'eco_cartodb'
attribution: ''
flat_blue:
url: 'https://cartocdn_{s}.global.ssl.fastly.net/base-flatblue/{z}/{x}/{y}.png'
subdomains: 'abcd'
minZoom: '0'
maxZoom: '10'
name: 'CARTO World Flat Blue'
className: 'flat_blue'
attribution: ''
midnight_cartodb:
url: 'https://cartocdn_{s}.global.ssl.fastly.net/base-midnight/{z}/{x}/{y}.png'
subdomains: 'abcd'
minZoom: '0'
maxZoom: '10'
name: 'CARTO World Midnight Commander'
className: 'midnight_cartodb'
attribution: ''
antique_cartodb:
url: 'https://cartocdn_{s}.global.ssl.fastly.net/base-antique/{z}/{x}/{y}.png'
subdomains: 'abcd'
minZoom: 0
maxZoom: 10
name: 'CARTO World Antique'
className: 'antique_cartodb'
attribution: ''
Stamen:
toner_stamen_labels:
url: 'https://stamen-tiles-{s}.a.ssl.fastly.net/toner-background/{z}/{x}/{y}.png'
subdomains: 'abcd'
minZoom: '0'
maxZoom: '18'
name: 'Toner'
className: 'toner_stamen_labels'
attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://www.openstreetmap.org/copyright">ODbL</a>.'
labels:
url: 'http://{s}.tile.stamen.com/toner-labels/{z}/{x}/{y}.png'
toner_stamen:
url: 'https://stamen-tiles-{s}.a.ssl.fastly.net/toner/{z}/{x}/{y}.png'
subdomains: 'abcd'
minZoom: '0'
maxZoom: '18'
name: 'Toner (labels below)'
className: 'toner_stamen'
attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://www.openstreetmap.org/copyright">ODbL</a>.'
toner_background_stamen:
url: 'https://stamen-tiles-{s}.a.ssl.fastly.net/toner-background/{z}/{x}/{y}.png'
subdomains: 'abcd'
minZoom: '0'
maxZoom: '18'
name: 'Toner Background'
className: 'toner_background_stamen'
attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://www.openstreetmap.org/copyright">ODbL</a>.'
toner_lite_stamen:
url: 'https://stamen-tiles-{s}.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}.png'
subdomains: 'abcd'
minZoom: '0'
maxZoom: '18'
name: 'Toner Lite'
className: 'toner_lite_stamen'
attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://www.openstreetmap.org/copyright">ODbL</a>.'
toner_lines_stamen:
url: 'https://stamen-tiles-{s}.a.ssl.fastly.net/toner-lines/{z}/{x}/{y}.png'
subdomains: 'abcd'
minZoom: '0'
maxZoom: '18'
name: 'Toner Lines'
className: 'toner_lines_stamen'
attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://www.openstreetmap.org/copyright">ODbL</a>.'
toner_hybrid_stamen:
url: 'https://stamen-tiles-{s}.a.ssl.fastly.net/toner-hybrid/{z}/{x}/{y}.png'
subdomains: 'abcd'
minZoom: '0'
maxZoom: '18'
name: 'Toner Hybrid'
className: 'toner_hybrid_stamen'
attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://www.openstreetmap.org/copyright">ODbL</a>.'
watercolor_stamen:
url: 'https://stamen-tiles-{s}.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.png'
subdomains: 'abcd'
minZoom: '0'
maxZoom: '18'
name: 'Watercolor'
className: 'watercolor_stamen'
attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://www.openstreetmap.org/copyright">ODbL</a>.'
overviews:
min_rows: 2000000
statement_timeout: 1800000
tolerance_px: 1.0
connectors:
odbc:
enabled: false
max_rows: nil
mysql:
enabled: true
max_rows: 500000
postgresql:
enabled: true
max_rows: 500000
hive:
enabled: false
max_rows: 500000
sqlserver:
enabled: false
max_rows: 500000
dataservices:
enabled:
geocoder_internal: true
hires_geocoder: false
isolines: false
routing: false
data_observatory: true
development:
<<: *defaults
#http_port: 3000
varnish_management:
critical: false
host: '127.0.0.1'
port: 6082
purge_command: 'purge'
url_purge_command: 'url.purge'
retries: 5
timeout: 5
test:
<<: *defaults
http_port: 53716
redis:
host: '127.0.0.1'
port: 6335
enforce_non_empty_layer_css: false
api_requests_es_service:
url: "http://api-calls-service.cartodb.localhost/search"
body: ""
staging:
<<: *defaults
production:
<<: *defaults