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

fix problems with some urls when use --public_url #583

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

emiliopardo
Copy link

Hello

I've had some problems when trying to use tileserver-gl through a proxy.

These problems are related to the static files located in the path "/usr/src/app/public/"

The "wmts.tmpl" file does not contemplate the use of {{public_url}}, it always uses {{base_url}}

In the index.tmpl file in the wmts section, {{public_url}} is not considered in the link to the capabilities of the service.

In the index.css file all calls to styles that have url fail because they cannot be parameterized with {{public_url}}

If these styles are removed and included within index.tmpl in the header with <style> you can use {{public_url}}

These changes are minor and make it easier to use tileserver-gl through a proxy.

Thanks

@acalcutt
Copy link
Collaborator

I Merged #605 , which sets BaseUrl to PublicUrl if the option is set. I think this should make the changes in wmts.tmpl not needed anymore.

I also merge #501 , which fixes the public url in index

I think the only part left to this change would be the css, which I'm not sure about.

@mnutt
Copy link
Collaborator

mnutt commented Jan 19, 2023

I believe the font-face definitions can be left in the css file, and use relative paths to the font files.

@tonofll
Copy link

tonofll commented Jun 15, 2023

UP this PR
Although API endpoints perfectly work by using --public_url parameter, certain UI elements and links are completely broken when you place tileserver-gl behind a proxy.

image

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

4 participants