grafana / worldmap-panel

Worldmap panel plugin for Grafana 3.0 that can be overlaid with circles for data points.
MIT License
310 stars 199 forks source link

Inaccessible panel when using serve_from_sub_path = true #316

Open ninlil opened 3 years ago

ninlil commented 3 years ago

Part of out config:

[server]
root_url = https://hostname/grafana
serve_from_sub_path = true

We are running Grafana inside Kubernetes and all other panels (including some community) are working just fine. We've added the *.global.ssl.fastly.net to the CSP but when we add a "Worldmap Panel" we instantly get "blocked CSP" on blob:https://hostname/3306cc05-9756-493b-8b6d-3ff08a7870fa (and some other UUIDs)

These links are missing the "grafana"-part from the server.root_url above.

We have no idea what they are supposed to contain since we don't get anything when adding "/grafana" to the invalid URL above.

raypettersen commented 3 years ago

Just noticed the same problem with our similar config. Two uid type of files fail to load, as requests ignore the sub_path making worldmap panel unusable. Surely this is a bug?

amotl commented 3 years ago

Hi there,

we have been effectively maintaining the code base with our fork at [1] and will be happy to look into this issue if you can confirm it also happens with that code base. You can find installation instructions at [2].

Please feel free to open another issue at [1] in order to continue this discussion appropriately.

With kind regards, Andreas.

[1] https://github.com/panodata/grafana-map-panel [2] https://community.panodata.org/t/grafana-map-panel/121