need help with nextcloud and reverse proxy 

I'm using frp (github.com/fatedier/frp) as a reverse proxy to access my home server from everywhere. I'm trying to setup nextcloud for some friends but we all get blocked for "too many requests". I found the nextcloud doc about this and added my VPS ip as trusted proxies but still doesn't work. X-Forwarded-From is correct. Anyone knows what I can do? Here's the config: privatebin.net/?7a34f69bc0f338

I hope someone knows how to do it correctly ahaha

need help with nextcloud and reverse proxy 

@SonoMichele This link speaks to defining "trusted proxies" for nextcloud. Sorry I don't have direct experience with it to help more 馃槙

need help with nextcloud and reverse proxy 

@SonoMichele "Solved it by loggin in directly to the http ip of my nextcloud vm and after that, whitelisting my local home ip range under security settings --> Brute-Force IP-Whitelist."

from help.nextcloud.com/t/cannot-lo

Follow

need help with nextcloud and reverse proxy 

@mindofjoe so I should just disable Bruteforce protection? I didn鈥檛 wanted to do this because the server is publicly accessible from the internet

need help with nextcloud and reverse proxy 

@SonoMichele Again, I don't know nextcloud, but I would hope that whitelisting a source ip address is not the same as allowing an automatic login from the ip address.

Still, most reverse proxies will allow you to set up different types of authentication right at the reverse proxy. If so, you could enforce login at the reverse proxy before even a connection is allowed to nextcloud.

Hopefully someone sees this who knows more than me 馃檪

need help with nextcloud and reverse proxy 

@mindofjoe I appreciate your help. I did try to put authentication directly on the proxy but then NextCloud becomes inaccessible from the NextCloud apps on mobile.

Tomorrow I鈥檒l try to have a look at whitelisting an ip and if that disables bruteforce protection.

I hope that someone who has done that read this and helps me too haha

Sign in to participate in the conversation
Fosstodon

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.