What did you do?
I want to serve all types of services behind my traefik reverse proxy, like nodejs apps (that works perfectly) or vuejs apps.
Actually, I am trying to serve a vuejs app into a container.
This application is deploy is deployed with CI/CD behind these traefik configuration:
- Router rule :
PathPrefix(`/easydeploy-front`)
- Middleware :
StripPrefix(`/easydeploy-front`)
What did you expect to see?
Vuejs app working clean.
Vuejs app loads resources with relative paths like <link href=css/app.css>
.
So my browser have to call https://myserver/
easydeploy-front/css/app.css
to get my resource properly.
What did you see instead?
Vuejs app not working because my browser is Calling https://myserver
/css/app.css
at the root of my traefik. I Don't understand why the browser is Calling the root of my server knowing that i'm using relative paths.
My app works clean when this is served behind a web server like IIS.
Output of traefik version
: (What version of Traefik are you using?)
2.0