Open wolkenschieber opened 1 year ago
I had the same issue. Came here to ask for more attention to this issue. But then I noticed a typo in my config.
In any case, to fix this issue you also need to strip the /octoprint
prefix and add the X-Scheme
header if you're using https. I'll add this to the community FAQ as well.
labels:
- "traefik.http.middlewares.octoprint-headers.headers.customrequestheaders.X-Script-Name=/octoprint"
- "traefik.http.middlewares.octoprint-headers.headers.customrequestheaders.X-Scheme=https"
- "traefik.http.middlewares.octoprint-strip-prefix.stripprefix.prefixes=/octoprint"
- "traefik.http.routers.octoprint.middlewares=octoprint-headers,octoprint-strip-prefix"
I have the same bug when I try to use it with the Path Prefix, is there a solution for it yet?
I have the same bug when I try to use it with the Path Prefix, is there a solution for it yet?
Try:
labels:
- "traefik.http.middlewares.octoprint-headers.headers.customrequestheaders.X-Script-Name=/octoprint"
- "traefik.http.middlewares.octoprint-headers.headers.customrequestheaders.X-Scheme=https"
- "traefik.http.middlewares.octoprint-strip-prefix.stripprefix.prefixes=/octoprint"
- "traefik.http.routers.octoprint.middlewares=octoprint-headers,octoprint-strip-prefix"
Describe the bug
Webassets are not loaed, when a custom path through
X-Script-Name
is set.Container Details
My compose file looks like:
To Reproduce
Navigate to http://SERVER/octoprint/. The page won't load. File from
static/webassets
report 404.Screenshots