Sorry, can't help you. But as no other answered yet I was in a similar situation, gave up and used Caddy as a simpler reverse-proxy. But I don't know if it fits your needs.
this post was submitted on 13 Sep 2024
4 points (83.3% liked)
homelab
591 readers
2 users here now
homelab
founded 2 years ago
Thanks, i'll look at Caddy. This seems super simple if I have a domain name and use prefixes on that, but with paths it gets complex.
You need to add a PathPrefix middleware that handles the static assets - try adding another router rule like traefik.http.routers.dndnotes-assets.rule=PathPrefix(/dnd-notes/.client) without the stripprefix middleware for those paths, or look into using the addPrefix middleware to rewrite the paths proprely.