Exposes http renderer config
This commit is contained in:
parent
076f4b441f
commit
48d60821a7
@ -88,7 +88,14 @@ var config = {
|
|||||||
cache_ttl: 60000,
|
cache_ttl: 60000,
|
||||||
metatile: 4,
|
metatile: 4,
|
||||||
bufferSize: 64,
|
bufferSize: 64,
|
||||||
statsInterval: 5000 // milliseconds between each report to statsd about number of renderers and mapnik pool status
|
statsInterval: 5000, // milliseconds between each report to statsd about number of renderers and mapnik pool status
|
||||||
|
http: {
|
||||||
|
timeout: 2000, // the timeout in ms for a http tile request
|
||||||
|
proxy: undefined, // the url for a proxy server
|
||||||
|
whitelist: [ // the whitelist of urlTemplates that can be used
|
||||||
|
'http://{s}.example.com/{z}/{x}/{y}.png'
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
,millstone: {
|
,millstone: {
|
||||||
// Needs to be writable by server user
|
// Needs to be writable by server user
|
||||||
|
@ -82,7 +82,14 @@ var config = {
|
|||||||
cache_ttl: 60000,
|
cache_ttl: 60000,
|
||||||
metatile: 4,
|
metatile: 4,
|
||||||
bufferSize: 64,
|
bufferSize: 64,
|
||||||
statsInterval: 5000 // milliseconds between each report to statsd about number of renderers and mapnik pool status
|
statsInterval: 5000, // milliseconds between each report to statsd about number of renderers and mapnik pool status
|
||||||
|
http: {
|
||||||
|
timeout: 2000, // the timeout in ms for a http tile request
|
||||||
|
proxy: undefined, // the url for a proxy server
|
||||||
|
whitelist: [ // the whitelist of urlTemplates that can be used
|
||||||
|
'http://{s}.example.com/{z}/{x}/{y}.png'
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
,millstone: {
|
,millstone: {
|
||||||
// Needs to be writable by server user
|
// Needs to be writable by server user
|
||||||
|
@ -82,7 +82,14 @@ var config = {
|
|||||||
cache_ttl: 60000,
|
cache_ttl: 60000,
|
||||||
metatile: 4,
|
metatile: 4,
|
||||||
bufferSize: 64,
|
bufferSize: 64,
|
||||||
statsInterval: 5000 // milliseconds between each report to statsd about number of renderers and mapnik pool status
|
statsInterval: 5000, // milliseconds between each report to statsd about number of renderers and mapnik pool status
|
||||||
|
http: {
|
||||||
|
timeout: 2000, // the timeout in ms for a http tile request
|
||||||
|
proxy: undefined, // the url for a proxy server
|
||||||
|
whitelist: [ // the whitelist of urlTemplates that can be used
|
||||||
|
'http://{s}.example.com/{z}/{x}/{y}.png'
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
,millstone: {
|
,millstone: {
|
||||||
// Needs to be writable by server user
|
// Needs to be writable by server user
|
||||||
|
@ -82,7 +82,14 @@ var config = {
|
|||||||
cache_ttl: 60000,
|
cache_ttl: 60000,
|
||||||
metatile: 4,
|
metatile: 4,
|
||||||
bufferSize: 64,
|
bufferSize: 64,
|
||||||
statsInterval: 5000 // milliseconds between each report to statsd about number of renderers and mapnik pool status
|
statsInterval: 5000, // milliseconds between each report to statsd about number of renderers and mapnik pool status
|
||||||
|
http: {
|
||||||
|
timeout: 2000, // the timeout in ms for a http tile request
|
||||||
|
proxy: undefined, // the url for a proxy server
|
||||||
|
whitelist: [ // the whitelist of urlTemplates that can be used
|
||||||
|
'http://{s}.example.com/{z}/{x}/{y}.png'
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
,millstone: {
|
,millstone: {
|
||||||
// Needs to be writable by server user
|
// Needs to be writable by server user
|
||||||
|
@ -64,6 +64,9 @@ module.exports = function(redisPool) {
|
|||||||
ttl: rendererConfig.cache_ttl,
|
ttl: rendererConfig.cache_ttl,
|
||||||
statsInterval: rendererConfig.statsInterval
|
statsInterval: rendererConfig.statsInterval
|
||||||
},
|
},
|
||||||
|
renderer: {
|
||||||
|
http: rendererConfig.http
|
||||||
|
},
|
||||||
redis: global.environment.redis,
|
redis: global.environment.redis,
|
||||||
enable_cors: global.environment.enable_cors,
|
enable_cors: global.environment.enable_cors,
|
||||||
varnish_host: global.environment.varnish.host,
|
varnish_host: global.environment.varnish.host,
|
||||||
|
Loading…
Reference in New Issue
Block a user