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
Can't retrive admin panel behind Nginx reverse proxy under subdirectory (possible upstream experimental) #6369
Comments
Oh that is a regression. Thanks for the report. I'll try to find a solution. Maybe something with JS that replaces the url with window.href at runtime but that is something I need to check first. |
I'll add myself to this one: I'm running EP on Uberspace even behind a nginx proxy which adds
to nginx.conf. Admin panel was working well with 1.9.7 but it fails with 2.x
Even with using master (#6388) included, I get a 502. |
@Uatschitchun The nginx config has been updated too, see Wiki. Please try modifying your nginx config. |
Describe the bug
Set up an instance behind Nginx reverse proxy under the subdirectory with methods from wiki. The main project works fine, but the admin panel failed to load.
Upon further investigation, found that the assets are loaded relative to the webroot(
<host>/admin/assets/...
), but not to the subdirectory, which results in a failed rewrite catch for nginx.Checking for code,
admin
seems like a separate Vite project. Its build optionbase
specified absolute one level to root, which would not work aforementioned. Other options are not available either,./
would just result in resolving to webroot withoutadmin
level,./admin
is not supported. Seems like an experimental method described in Vite project document would work but with tweaking.Recommendation:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Admin panel should load.
Screenshots
Server (please complete the following information):
node --version
): v18.19.1npm --version
): 10.2.0Desktop (please complete the following information):
Not relevant but here you go:
Smartphone (please complete the following information):
Not relevant.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: