-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to deploy under NGINX subpath #92
Comments
Hi @d4rth-v4d3r the issue is that the asset urls for the webapp need to have a different base href tag. Basically the webapp is requesting the assets at This is easily configurable via a custom build, but unfortunately you will then find that the angular router cannot handle the path prefixes when using the webapp (i.e. the webapp router will look at your current path in the browser Is serving the app via a subdomain like Other than that, for the time being we won't be supporting custom path prefixes unless we can find a simple solution on the webapp. |
@anthonynsimon I was able to make it work. I made some changes and create a custom image. |
@d4rth-v4d3r That's cool! Would you mind sharing what did you have to do in case someone else would be interested in a similar setup? |
Of course, I would write a post to explain what I did, maybe it can be done easier. |
@anthonynsimon here it is what I did. |
Currently I have this configuration in my nginx.conf file
I deployed standard docker image, using this configuration:
But I can't make it work. It gives me 404 while trying to load .js resources from app. What can I do?
Should I need to build a custom image from source? What changes do I need to do to make this work?
I tried to edit webapp/src/index.html to add base href and built a custom image, but api did not work (returned 404)
The text was updated successfully, but these errors were encountered: