Closed hugodopradofernandes closed 3 years ago
The problem is in Laravel it self. It is possible to serve from another subdir, but it is not that simple as expected.
It will need some changes in configuration of the Apache/NginX and Laravel.
Well there is a cheaper solution, since your config seems to work except the assets.
The Laravel ENV var ASSET_URL changes the URL of the Assets.
So this should work for you: APP_URL=https://www.mydomain.com/klustair ASSET_URL=https://www.mydomain.com/klustair
This ENV var ist currently not part of the Helm charts.
I tried this, it works a bit better but some items and links still point to root URL and not subpath.... It also breaks if I try to access with port forward. We can close this item as Laravel is not made to work with subpath. Then I'll keep using port forward to access it.
kubectl port-forward --address 0.0.0.0 svc/klustair-app-frontend 8081:80
How to use klustair behing ingress using subpath /klustair? The closest I got was this one, that returns unformated page and all links point to / not /klustair
Ingress config: