PrusaOwners / OctoPrint-PrusaMeshMap

This plugin performs a mesh bed leveling operation then returns the results as an easy to read heatmap.
MIT License
133 stars 31 forks source link

Image link is broken if OctoPrint is not at root of website #32

Closed ppamidimarri closed 6 years ago

ppamidimarri commented 6 years ago

Great work, thank you for sharing this! I run my OctoPrint behind a reverse proxy and it is under the subdirectory /print. So I access it as https://mysite.com/print/. It works fine with my nginx server sending the X-Script-Name attribute correctly in the header. The image URL generated by this plugin (https://mysite.com/plugin/PrusaMeshMap/static/img/heatmap.png) is missing that subdirectory, so it won't load properly. I confirmed that the plugin works fine when I access OctoPrint within my LAN bypassing the reverse proxy. Thanks for looking into this! Edit: the proxy pass header that makes my set up work is proxy_set_header X-Script-Name /print;, not X-Forwarded-For. Here are the instructions on OctoPrint.org that I followed to get the core UI and other plugins work this way.

ppamidimarri commented 6 years ago

Duplicate of #23