Add templateMaps to serveroptions for the time being
This commit is contained in:
parent
f1b6be1ecb
commit
64b5a64e1b
@ -50,12 +50,13 @@ var CartodbWindshaft = function(serverOptions) {
|
|||||||
var template_baseurl = global.environment.base_url_templated || '(?:/maps/named|/tiles/template)';
|
var template_baseurl = global.environment.base_url_templated || '(?:/maps/named|/tiles/template)';
|
||||||
|
|
||||||
var signedMaps = new SignedMaps(redisPool);
|
var signedMaps = new SignedMaps(redisPool);
|
||||||
|
|
||||||
serverOptions.signedMaps = signedMaps;
|
serverOptions.signedMaps = signedMaps;
|
||||||
|
|
||||||
var templateMapsOpts = {
|
var templateMapsOpts = {
|
||||||
max_user_templates: global.environment.maxUserTemplates
|
max_user_templates: global.environment.maxUserTemplates
|
||||||
};
|
};
|
||||||
var templateMaps = new TemplateMaps(redisPool, signedMaps, templateMapsOpts);
|
var templateMaps = new TemplateMaps(redisPool, signedMaps, templateMapsOpts);
|
||||||
|
serverOptions.templateMaps = templateMaps;
|
||||||
|
|
||||||
// boot
|
// boot
|
||||||
var ws = new Windshaft.Server(serverOptions);
|
var ws = new Windshaft.Server(serverOptions);
|
||||||
|
Loading…
Reference in New Issue
Block a user