Skip to content
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

When used with a path in a reverse proxy static resources cannot be loaded #19

Closed
fabienfleureau opened this issue Oct 20, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@fabienfleureau
Copy link

Describe the bug
dbadmin page is accessible at this public url https://example.com/dbadmin
in a private network it is hosted on https://private_domain.com/dbadmin
there a reverse proxy mapping /dbadmin* path to private_domain/dbadmin*
In this case only the dynamic resources are accessible but not static ones.
Indeed it's trying to load script like this one https://example.com/js/table.js which is not accessible as only dbadmin is mapped with the reverse proxy.

This is PR trying to fix with a configuration properties: #15

But it can be solved also by reusing by default dbadmin_baseUrl on static resources.

@aileftech aileftech self-assigned this Oct 20, 2023
@aileftech aileftech added the bug Something isn't working label Oct 20, 2023
@aileftech
Copy link
Owner

aileftech commented Oct 20, 2023

I've pushed two commits (31200ad, ec7eac3) to the dev branch which should fix this. I haven't replicated the full setup with the reverse proxy, but I've verified that static resources are now served under /${dbadmin_baseUrl} and referenced as such in the HTML template.

Can you try by any chance or look at the two commits? I believe this is correct.

@fabienfleureau
Copy link
Author

seems good, thank you 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants