diff --git a/docs/config.rst b/docs/config.rst index 535353d..3a7af5a 100644 --- a/docs/config.rst +++ b/docs/config.rst @@ -66,6 +66,16 @@ The value of ``root`` is used as prefix for all data types. You can use this to optionally specify on what domains the rendered tiles are accessible. This can be used for basic load-balancing or to bypass browser's limit for the number of connections per domain. +``baseURL`` +----------- + +When you run the tile server server behind a load-balancer, the automatic URL generators wont't have the required information to build URLs which point to the correct LB endpoint. + +Also, if your load balancer is forwarding a HTTPS connection to the non-HTTPS ``tileserver-gl``, setting the ``baseURL`` is indispensable. + +Not compatible with the ``domains`` option. + + ``formatQuality`` ----------------- diff --git a/public/resources/index.css b/public/resources/index.css index 4392232..e9238d1 100644 --- a/public/resources/index.css +++ b/public/resources/index.css @@ -1,18 +1,18 @@ @font-face { font-family: 'OpenSans'; - src: url('/fonts/OpenSans-Regular.ttf'); + src: url('fonts/OpenSans-Regular.ttf'); font-weight: normal; font-style: normal; } @font-face { font-family: 'OpenSans'; - src: url('/fonts/OpenSans-Italic.ttf'); + src: url('fonts/OpenSans-Italic.ttf'); font-weight: normal; font-style: italic; } @font-face { font-family: 'OpenSans'; - src: url('/fonts/OpenSans-Bold.ttf'); + src: url('fonts/OpenSans-Bold.ttf'); font-weight: bold; font-style: normal; } @@ -149,21 +149,21 @@ footer a { body { background-repeat:no-repeat !important; background-size: contain !important; - background-image: url(/images/header-map-640px.png); + background-image: url(images/header-map-640px.png); } @media only screen and (min-width: 641px) { body { - background-image: url(/images/header-map-1280px.png); + background-image: url(images/header-map-1280px.png); } } @media only screen and (min-width: 1281px) { body { - background-image: url(/images/header-map-1600px.png); + background-image: url(images/header-map-1600px.png); } } @media only screen and (min-width: 1601px) { body { - background-image: url(/images/header-map-2560px.png); + background-image: url(images/header-map-2560px.png); } } @@ -209,4 +209,4 @@ body { .btn:first-child{ padding: 0 20px; } -} \ No newline at end of file +} diff --git a/public/templates/data.tmpl b/public/templates/data.tmpl index 65bc4eb..92b0e3e 100644 --- a/public/templates/data.tmpl +++ b/public/templates/data.tmpl @@ -5,8 +5,8 @@ {{name}} - TileServer GL {{#is_vector}} - - + + {{/is_vector}} {{^is_vector}} - - - + + +