Separate signed maps instantiation

This commit is contained in:
Raul Ochoa 2015-01-20 18:40:56 +01:00
parent c14157acc2
commit 8bc08d75b7

View File

@ -49,11 +49,13 @@ var CartodbWindshaft = function(serverOptions) {
//
var template_baseurl = global.environment.base_url_templated || '(?:/maps/named|/tiles/template)';
serverOptions.signedMaps = new SignedMaps(redisPool);
var signedMaps = new SignedMaps(redisPool);
serverOptions.signedMaps = signedMaps;
var templateMapsOpts = {
max_user_templates: global.environment.maxUserTemplates
};
var templateMaps = new TemplateMaps(redisPool, serverOptions.signedMaps, templateMapsOpts);
var templateMaps = new TemplateMaps(redisPool, signedMaps, templateMapsOpts);
// boot
var ws = new Windshaft.Server(serverOptions);