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

No need to use HOSTNAME or fill TERRA_TILES_HOSTNAME by default #48

Closed
submarcos opened this issue Jun 11, 2020 · 0 comments · Fixed by #53
Closed

No need to use HOSTNAME or fill TERRA_TILES_HOSTNAME by default #48

submarcos opened this issue Jun 11, 2020 · 0 comments · Fixed by #53
Labels
bug Something isn't working

Comments

@submarcos
Copy link
Member

submarcos commented Jun 11, 2020

HOSTNAME is used to set TERRA_TILES_HOSTNAME by default.

TERRA_TILES_HOSTNAME is used to propose absolute urls for tile url patterns in tilejson.

It is not required to have a default value for this, using request.build_absolute_uri should be sufficient to propose a default absolute url. If headers are correctly set, tiles url will be generated with original request url (compatible with external frontend url in production). In dev mode, backend url will be used and working with CORS allowed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant