diff --git a/config/environments/config.js b/config/environments/config.js index 21aa0952..f0cdd6b4 100644 --- a/config/environments/config.js +++ b/config/environments/config.js @@ -64,8 +64,8 @@ var config = { // 2. {{=it.user}}: will use the username as extraced from `user_from_host` or `routes`. // 3. {{=it.port}}: will use the `port` from this very same configuration file. resources_url_templates: { - http: 'http://{{=it.cdn_url}}/{{=it.user}}/api/v1/map', - https: 'https://{{=it.cdn_url}}/{{=it.user}}/api/v1/map' + http: process.env.CARTO_WINDSHAFT_RESOURCE_URL_TEMPLATE_HTTP || 'http://{{=it.cdn_url}}/{{=it.user}}/api/v1/map', + https: process.env.CARTO_WINDSHAFT_RESOURCE_URL_TEMPLATE_HTTPS || 'https://{{=it.cdn_url}}/{{=it.user}}/api/v1/map' }, // Specify the maximum length of the queue of pending connections for the HTTP server. // The actual length will be determined by the OS through sysctl settings such as tcp_max_syn_backlog and somaxconn on Linux. @@ -328,8 +328,8 @@ var config = { useProfiler: false, serverMetadata: { cdn_url: { - http: 'api.cartocdn.com', - https: 'cartocdn.global.ssl.fastly.net' + http: process.env.CARTO_WINDSHAFT_SERVER_CDN_URL_HTTP || 'api.cartocdn.com', + https: process.env.CARTO_WINDSHAFT_SERVER_CDN_URL_HTTPS || 'cartocdn.global.ssl.fastly.net' } }, // Settings for the health check available at /health