-
The nginx reverse proxy in front of the app is already setting that header https://git.cloudron.io/cloudron/box/blob/master/setup/start/nginx/appconfig.ejs#L104
Not sure if apache needs some further configs for this as well? The local apache config of the app is at https://git.cloudron.io/cloudron/nextcloud-app/blob/master/apache/nextcloud.conf
-
@nebulon said in Nextcloud login very long:
The nginx reverse proxy in front of the app is already setting that header https://git.cloudron.io/cloudron/box/blob/master/setup/start/nginx/appconfig.ejs#L104
Not sure if apache needs some further configs for this as well? The local apache config of the app is at https://git.cloudron.io/cloudron/nextcloud-app/blob/master/apache/nextcloud.conf
That's how I understand the documentation here : https://httpd.apache.org/docs/current/en/mod/mod_remoteip.html#remoteipheader
Nginx forward the the header to apache/NextCloud, but apache/NextCloud don't read it as "the real IP"
-
@girish Okay, good !
Just to precise, I've check oc_bruteforce_attempts and there were a lot of private IPs in the table (regarding this : https://help.nextcloud.com/t/11-0-2-incredibly-slow-login/9475/19 )Drop the table correct the issue also.
-
Hi! I'm having the same problem with the connection. Could you please specify where I can find this table "oc_bruteforce_attempts" exactly? I've tried but couldn't find the "nextcloud" database. Thanks!
-
I ran into this as well. Here is a link to an article I wrote detailing the quick fix... (Hosted on Cloudron!)
https://i-am-will.com/fix-nextclouds-slow-logon/Sometimes NextCloud 13 can become inexplicably slow when logging on. One thing that might be happening is you being put on a block list due to entering your password incorrectly. To fix NextCloud's slow logon due to brute force protection, enter this line:
‘auth.bruteforce.protection.enabled’ => 'false',Into this file:
/app/data/config/config.phpYou will need to enter this in the terminal WITHIN the NextCloud app. Go to your CextCloud app and click the terminal button, then click "repair" this will allow you to make changes that stick. Pop in the line above, and finish your repair by clicking "done repair". (Correct me if I'm wrong on any of the details above)
Now this will get you working, but itsnt recommended long term. People trying to hack into your NextCloud are stopped by this. Typically this table clears itself every 48 hours or so.
Good luck!
V/R,
Will
-
Still no connection
I also tried to reload with adding this line 'auth.bruteforce.protection.enabled' =>false, into /app/data/config/config.php but it didn't help either. -
@yylevas Is there no connection? Or just a very slow login? This might be a different problem all together.
-
Thank you for replying. I found the problem finally! There was something about failed keys exchanging in windows app's log and I turned off "end-to-end encryption" app and it worked. Sorry for misunderstanding, I'm a little new to everything like this.
-
@yylevas No worries! Glad you found the problem. Breaking stuff is the fastest way to learn!