diff --git a/config/environments/development.js.example b/config/environments/development.js.example index 70046ffb..24daad9b 100644 --- a/config/environments/development.js.example +++ b/config/environments/development.js.example @@ -150,6 +150,7 @@ var config = { ,varnish: { host: 'localhost', port: 6082, + http_port: 6081, secret: 'xxx', ttl: 86400, layergroupTtl: 86400 // the max-age for cache-control header in layergroup responses diff --git a/config/environments/production.js.example b/config/environments/production.js.example index 0d3a161c..8f36f66a 100644 --- a/config/environments/production.js.example +++ b/config/environments/production.js.example @@ -144,6 +144,7 @@ var config = { ,varnish: { host: 'localhost', port: 6082, + http_port: 6081, secret: 'xxx', ttl: 86400, layergroupTtl: 86400 // the max-age for cache-control header in layergroup responses diff --git a/config/environments/staging.js.example b/config/environments/staging.js.example index 4e2cb673..f559d2a2 100644 --- a/config/environments/staging.js.example +++ b/config/environments/staging.js.example @@ -144,6 +144,7 @@ var config = { ,varnish: { host: 'localhost', port: 6082, + http_port: 6081, secret: 'xxx', ttl: 86400, layergroupTtl: 86400 // the max-age for cache-control header in layergroup responses diff --git a/config/environments/test.js.example b/config/environments/test.js.example index 73e522bd..2c3a8629 100644 --- a/config/environments/test.js.example +++ b/config/environments/test.js.example @@ -146,6 +146,7 @@ var config = { ,varnish: { host: '', port: null, + http_port: 6081, secret: 'xxx', ttl: 86400, layergroupTtl: 86400 // the max-age for cache-control header in layergroup responses diff --git a/lib/cartodb/server_options.js b/lib/cartodb/server_options.js index d5d16454..45dcde1a 100644 --- a/lib/cartodb/server_options.js +++ b/lib/cartodb/server_options.js @@ -89,6 +89,7 @@ module.exports = function(redisPool) { enable_cors: global.environment.enable_cors, varnish_host: global.environment.varnish.host, varnish_port: global.environment.varnish.port, + varnish_http_port: global.environment.varnish.http_port, varnish_secret: global.environment.varnish.secret, cache_enabled: global.environment.cache_enabled, log_format: global.environment.log_format,