-
-
Notifications
You must be signed in to change notification settings - Fork 227
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
HFS will not load under reverse proxy #694
Comments
I can indeed reproduce the same issue with trying to get this to work with nginx. I have followed the documentation and configuration examples as per https://github.com/rejetto/hfs/wiki/Reverse-proxy and issue remains the same. The nginx error log reports tons of |
I was just able to figure out why... Just few minutes as I posted above. In the local console I was able to see this:
This is my public IP and I was already delayed/blocked after accessing the site the first time. After disabling the plugin HFS does work just fine behind a reverse proxy. |
antibrute plugin only acts when you make repeated login attempts, otherwise does nothing |
I'd have expected this as well. But somehow it still seem to break reverse proxy ability without even submitting any login form (I don't have any admin accounts created and solely use localhost) |
Sorry for the late reply, I've lost track of this. |
hmmm, |
That's a good point. I have indeed configured HTTP Basic Auth on reverse proxy-level, before any traffic goes through HFS. That would make sense. And due to some caching or whatsoever, it might try to access CSS, JS, etc resources and exceed threshold, ending up in blocking the IP. |
consider that a lot of people is using hfs behind nginx without this problem, and antibrute is enabled by default. |
ok, so maybe you should add a line in nginx to override the content of "authentication". Make it empty, or delete it, if you don't need this feature in HFS. HFS supports this kind of authentication. |
Is there any way disabling HTTP BASIC Auth? I really would like to have nginx do the authentication. Also because I'm using HFS unauthenticated in my internal network. |
there's no such option at the moment, but you can solve the way i wrote. |
Aaah, sorry. Misunderstood your idea. Sorry! Brilliant one! I just tested it, and this one does the trick with antibrute enabled:
|
BEFORE
To Reproduce
Steps to reproduce the behavior:
Describe the bug
When loading the hfs page under reverse proxy it gets stuck on "Wait for loading or use basic interface"
Expected behavior
The page loads correctly under the reverse proxy.
Screenshots
Environment (please complete the following information):
Additional context
Nginx runs as https.
The text was updated successfully, but these errors were encountered: