Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allows resolving relative public urls into absolute urls #558

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tVienonen
Copy link

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.

@ochtec
Copy link

ochtec commented Apr 19, 2022

We have this same issue

@vasily-polonsky
Copy link

any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants