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 :/

Follow

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

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.