forked from CartoDB/mobile-tile-packager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
22 lines (20 loc) · 1.12 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
var port = 8787;
var mtp_host = process.env.MTP_HOST ? process.env.MTP_HOST : 'localhost';
var api_key = process.env.MTP_API_KEY ? `api_key=${process.env.MTP_API_KEY}` : '';
module.exports = {
report_log: false, //log output for each tile
concurrency: 5, //number of parallel tile downloads
output: '/tmp',
server_port: port,
private: api_key,
inst_url: `https://{username}.carto.com/api/v1/map/named/{template}?${api_key}`,
map_url: `https://{username}.carto.com/api/v1/map?${api_key}`,
tile_url: `https://{username}.carto.com/api/v1/map/{layergroupid}/{z}/{x}/{y}.mvt?${api_key}`,
download_url: `http://${mtp_host}:${port}/api/v1/package/get/{username}/{id}`,
sql_api_url: `http://{username}.carto.com/api/v2/sql?${api_key}&q={sql}&format=GeoJSON`,
tippe: 'tippecanoe -o {mbtiles_file} --minimum-zoom={minzoom} --maximum-zoom={maxzoom} --layer=layer {geojson_file}',
/* kue job manager settings */
kue_redis_port: process.env.REDIS_PORT !== undefined ? parseInt(process.env.REDIS_PORT) : 6379,
kue_redis_host: process.env.REDIS_HOST !== undefined ? process.env.REDIS_HOST : '127.0.0.1',
kue_redis_prefix: 'q'
}