tileserver-gl icon indicating copy to clipboard operation
tileserver-gl copied to clipboard

feat: allows resolving relative public urls into absolute urls

Open tVienonen opened this issue 4 years ago • 2 comments

Hello,

I had an issue with using tileserver-gl running behind a proxy in a subdirectory. I also wanted to configure my web clients with relative urls so that map server url was /maps. Mapbox GL requires that urls that come from tileserver-gl are absolute URLs.

This feature enables the server to serve content from subdirectory so that all the relative urls are resolved into absolute urls.

This is an opt-in feature so it won't be enabled by default. You have to specify TILESERVER_GL_RESOLVE_RELATIVE_PUBLIC_URL=true env variable and public_url option for it to be enabled.

tVienonen avatar Nov 23 '21 12:11 tVienonen

We have this same issue

ochtec avatar Apr 19 '22 20:04 ochtec

any updates?

vasily-polonsky avatar Dec 25 '23 20:12 vasily-polonsky