tileserver-gl
tileserver-gl copied to clipboard
Documentation synchronization
In https://github.com/klokantech/tileserver-gl/blob/master/docs/config.rst, the documentation is slightly outdated.
https://github.com/klokantech/tileserver-gl/blob/master/docs/config.rst is missing the following part, found in PR #86 https://github.com/klokantech/tileserver-gl/pull/86/commits/29b3c5f5dc5d8ffca6bd8c3a77277b16aa60d60f?short_path=fd40cf2#diff-fd40cf2be7711772de9d8316da038cce
+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.
+
+
This section could also be mentioned in the "Running behind a proxy or a load-balancer" section as it can solve the X-Forwarded-* issue. 👍
Note: maybe not useful after PR #119 integration.
@mcm-jyl How does the baseURL
in the config.json
file is supposed to work?
I can't see baseURL
used anywhere in the code, apart from the WMTS part internals:
https://github.com/search?l=&q=baseUrl+repo%3Amaptiler%2Ftileserver-gl+pushed%3A%3C2020-11-18&type=code
In response to https://github.com/maptiler/tileserver-gl/pull/86, as far as I understand, the --public_url
option was added in https://github.com/maptiler/tileserver-gl/pull/230 and merged!