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
This commit is contained in:
parent
9b122280e1
commit
a6c1aefecc
@ -14,11 +14,11 @@ var config = {
|
|||||||
// Base url for the Templated Maps API
|
// Base url for the Templated Maps API
|
||||||
// "/api/v1/map/named" is the new API,
|
// "/api/v1/map/named" is the new API,
|
||||||
// "/tiles/template" is for compatibility with versions up to 1.6.x
|
// "/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
|
// Base url for the Detached Maps API
|
||||||
// "maps" is the the new API,
|
// "maps" is the the new API,
|
||||||
// "tiles/layergroup" is for compatibility with versions up to 1.6.x
|
// "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
|
// Maximum number of connections for one process
|
||||||
// 128 is a good value with a limit of 1024 open file descriptors
|
// 128 is a good value with a limit of 1024 open file descriptors
|
||||||
|
@ -14,11 +14,11 @@ var config = {
|
|||||||
// Base url for the Templated Maps API
|
// Base url for the Templated Maps API
|
||||||
// "/api/v1/map/named" is the new API,
|
// "/api/v1/map/named" is the new API,
|
||||||
// "/tiles/template" is for compatibility with versions up to 1.6.x
|
// "/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
|
// Base url for the Detached Maps API
|
||||||
// "maps" is the the new API,
|
// "maps" is the the new API,
|
||||||
// "tiles/layergroup" is for compatibility with versions up to 1.6.x
|
// "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
|
// Maximum number of connections for one process
|
||||||
// 128 is a good value with a limit of 1024 open file descriptors
|
// 128 is a good value with a limit of 1024 open file descriptors
|
||||||
|
@ -14,11 +14,11 @@ var config = {
|
|||||||
// Base url for the Templated Maps API
|
// Base url for the Templated Maps API
|
||||||
// "/api/v1/maps/named" is the new API,
|
// "/api/v1/maps/named" is the new API,
|
||||||
// "/tiles/template" is for compatibility with versions up to 1.6.x
|
// "/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
|
// Base url for the Detached Maps API
|
||||||
// "/api/v1/maps" is the the new API,
|
// "/api/v1/maps" is the the new API,
|
||||||
// "/tiles/layergroup" is for compatibility with versions up to 1.6.x
|
// "/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
|
// Maximum number of connections for one process
|
||||||
// 128 is a good value with a limit of 1024 open file descriptors
|
// 128 is a good value with a limit of 1024 open file descriptors
|
||||||
|
@ -14,11 +14,11 @@ var config = {
|
|||||||
// Base url for the Templated Maps API
|
// Base url for the Templated Maps API
|
||||||
// "/api/v1/map/named" is the new API,
|
// "/api/v1/map/named" is the new API,
|
||||||
// "/tiles/template" is for compatibility with versions up to 1.6.x
|
// "/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
|
// Base url for the Detached Maps API
|
||||||
// "maps" is the the new API,
|
// "maps" is the the new API,
|
||||||
// "tiles/layergroup" is for compatibility with versions up to 1.6.x
|
// "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
|
// Maximum number of connections for one process
|
||||||
// 128 is a good value with a limit of 1024 open file descriptors
|
// 128 is a good value with a limit of 1024 open file descriptors
|
||||||
|
Loading…
Reference in New Issue
Block a user