Kragrathea / OctoPrint-PrettyGCode

114 stars 20 forks source link

PrettyGCode does not work behind proxy #148

Closed tyrel closed 1 year ago

tyrel commented 1 year ago

PrettyGCode is failing to work behind a reverse proxy (nginx) because it's not using the right URLs. All other plugins and OctoPrint itself work fine. image I have nginx adding these headers which should be plenty:

Host: <actual hostname>
X-Real-IP: <real client IP>
X-Forwarded-For: <client IP>, <proxy IP>
X-Scheme: https
X-Script-Name: /ender3v2

Again, other plugins and OctoPrint itself seem to pick up on this, and they use the correct URLs. But PrettyGCode does not.

tyrel commented 1 year ago

Duplicate of #132