-
-
Notifications
You must be signed in to change notification settings - Fork 169
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
Support base path of frontend with depth > 1 #153
Comments
@nscuro, correct me if I'm wrong, but didn't we remove support for non-root deployment paths of the frontend due to OIDC complexities. I think it's expected that NGINX would have similar issues when trying to proxy as a non-root path, correct? |
I believe it wasn't so much because of OIDC specifically, but more so due to the split of the frontend into a separate artifact.
Line 8 in 508c1ef
So it cannot be modified at runtime when the frontend container starts. We had the choice of leaving That being said, we can and should revisit this. Maybe there is a workaround or solution that we didn't consider the last time we looked at it. |
This issue has been around for quite a while now. Is there any progress happening behind the scenes? We'd love to use Dependency Track, but are actually forced to use context paths (in contrast to a root deployment), so ATM we cannot deploy DT... |
In fact this was implemented by a contributor and will be shipped with v4.12: #801 |
Current Behavior:
Basepath with depth > 1 not working
When changing vue.config.js to publicPath to:
e.g. /-/dtrack/
https://github.com/DependencyTrack/frontend/blob/master/vue.config.js#L8
with NGINX config:
Proposed Behavior:
Basepath with depth > 1 is working
Related source:
https://github.com/DependencyTrack/frontend/blob/master/src/views/portfolio/projects/ProjectList.vue#L84
https://github.com/DependencyTrack/frontend/blob/master/src/shared/utils.js#L67
The text was updated successfully, but these errors were encountered: