fix problems with some urls when use --public_url#583
fix problems with some urls when use --public_url#583emiliopardo wants to merge 3 commits intomaptiler:masterfrom
Conversation
|
I believe the font-face definitions can be left in the css file, and use relative paths to the font files. |
| | <a href="/styles/{{@key}}/wmts.xml{{&../key_query}}">WMTS</a> | ||
| | <a href="{{public_url}}styles/{{@key}}/wmts.xml{{&../key_query}}">WMTS</a> |
There was a problem hiding this comment.
I believe this has been fixed long ago
This is weird indeed, because the tileserver-gl/public/templates/index.tmpl Lines 64 to 72 in 9bb270b There is a peculiar issue though:
The only issue I noticed is the missing thumbnails: but that seems to be due to the URL-s missing |


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