From a6c1aefecc00b9b98b0585bcbdbdafc0ab907aa0 Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Wed, 8 Apr 2015 16:05:33 +0200 Subject: [PATCH] Fixes in example configuration files: - Puts back the still supported /tiles/template and /tiles/layergroup - Changes from /u/:user to /user/:user for subdomainless users --- config/environments/development.js.example | 4 ++-- config/environments/production.js.example | 4 ++-- config/environments/staging.js.example | 4 ++-- config/environments/test.js.example | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/config/environments/development.js.example b/config/environments/development.js.example index 7b7866b1..57e831f5 100644 --- a/config/environments/development.js.example +++ b/config/environments/development.js.example @@ -14,11 +14,11 @@ var config = { // Base url for the Templated Maps API // "/api/v1/map/named" is the new API, // "/tiles/template" is for compatibility with versions up to 1.6.x - ,base_url_templated: '(?:/api/v1/map/named|/u/:user/api/v1/map/named)' + ,base_url_templated: '(?:/api/v1/map/named|/user/:user/api/v1/map/named|/tiles/template)' // Base url for the Detached Maps API // "maps" is the the new API, // "tiles/layergroup" is for compatibility with versions up to 1.6.x - ,base_url_detached: '(?:/api/v1/map|/u/:user/api/v1/map)' + ,base_url_detached: '(?:/api/v1/map|/user/:user/api/v1/map|/tiles/layergroup)' // Maximum number of connections for one process // 128 is a good value with a limit of 1024 open file descriptors diff --git a/config/environments/production.js.example b/config/environments/production.js.example index 72fae68b..89106528 100644 --- a/config/environments/production.js.example +++ b/config/environments/production.js.example @@ -14,11 +14,11 @@ var config = { // Base url for the Templated Maps API // "/api/v1/map/named" is the new API, // "/tiles/template" is for compatibility with versions up to 1.6.x - ,base_url_templated: '(?:/api/v1/map/named|/u/:user/api/v1/map/named)' + ,base_url_templated: '(?:/api/v1/map/named|/user/:user/api/v1/map/named|/tiles/template)' // Base url for the Detached Maps API // "maps" is the the new API, // "tiles/layergroup" is for compatibility with versions up to 1.6.x - ,base_url_detached: '(?:/api/v1/map|/u/:user/api/v1/map)' + ,base_url_detached: '(?:/api/v1/map|/user/:user/api/v1/map|/tiles/layergroup)' // Maximum number of connections for one process // 128 is a good value with a limit of 1024 open file descriptors diff --git a/config/environments/staging.js.example b/config/environments/staging.js.example index 242890f6..c104b088 100644 --- a/config/environments/staging.js.example +++ b/config/environments/staging.js.example @@ -14,11 +14,11 @@ var config = { // Base url for the Templated Maps API // "/api/v1/maps/named" is the new API, // "/tiles/template" is for compatibility with versions up to 1.6.x - ,base_url_templated: '(?:/api/v1/map/named|/u/:user/api/v1/map/named)' + ,base_url_templated: '(?:/api/v1/map/named|/user/:user/api/v1/map/named|/tiles/template)' // Base url for the Detached Maps API // "/api/v1/maps" is the the new API, // "/tiles/layergroup" is for compatibility with versions up to 1.6.x - ,base_url_detached: '(?:/api/v1/map|/u/:user/api/v1/map)' + ,base_url_detached: '(?:/api/v1/map|/user/:user/api/v1/map|/tiles/layergroup)' // Maximum number of connections for one process // 128 is a good value with a limit of 1024 open file descriptors diff --git a/config/environments/test.js.example b/config/environments/test.js.example index de03dc7f..b45842ae 100644 --- a/config/environments/test.js.example +++ b/config/environments/test.js.example @@ -14,11 +14,11 @@ var config = { // Base url for the Templated Maps API // "/api/v1/map/named" is the new API, // "/tiles/template" is for compatibility with versions up to 1.6.x - ,base_url_templated: '(?:/api/v1/map/named|/u/:user/api/v1/map/named)' + ,base_url_templated: '(?:/api/v1/map/named|/user/:user/api/v1/map/named|/tiles/template)' // Base url for the Detached Maps API // "maps" is the the new API, // "tiles/layergroup" is for compatibility with versions up to 1.6.x - ,base_url_detached: '(?:/api/v1/map|/u/:user/api/v1/map)' + ,base_url_detached: '(?:/api/v1/map|/user/:user/api/v1/map|/tiles/layergroup)' // Maximum number of connections for one process // 128 is a good value with a limit of 1024 open file descriptors