Follow

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 are you trying to get Nextcloud to work behind haproxy by chance? I'll just bookmark this thread in case someone tells you how to do it. I gave up :/

need help with nextcloud and reverse proxy 

@SocialNetwooky I have a VPS that now is also a proxy to access my raspberry at home. I can't directly access to the raspberry because my router is behind a NAT so I need a workaround. This workaround works but nextcloud blocks us because it thinks we are trying to bruteforce into the server

need help with nextcloud and reverse proxy 

@SonoMichele ah .. I see. Slightly different problem than mine. have you edited the trusted proxy param in config/config.php ?
It should look a bit like that :

'trusted_proxies' =>
array (
0 => '192.168.0.100',
1 => '127.0.0.1',
),

need help with nextcloud and reverse proxy 

@SocialNetwooky Yep, you can check my config on the privatebin link

need help with nextcloud and reverse proxy 

@SonoMichele oh .. sorry. new to Mastodon. I hadn't noticed there was more text. I'll take a look.

need help with nextcloud and reverse proxy 

@SocialNetwooky Don't worry

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 

@mindofjoe I think I did but it doesn't seem to work

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

need help with nextcloud and reverse proxy 

@mindofjoe so I should just disable Bruteforce protection? I didn’t 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’ll 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.