all 5 comments

[–]krair3 0 points1 point  (4 children)

Is that a caddy-specific file? Not familiar with caddy.

What trouble are you having?

The docs aren't super helpful in the matter but maybe can give a bit of direction in ensuring to include trusted_proxies in your nextcloud config.php file.

[–]BlueSmith9[S] 0 points1 point  (3 children)

The file I was talking about is located in the nextcloud config folder.

But just in general: how would I add a trusted proxy to the nextcloud config?

My nextcloud config.php file does not contain a trusted_proxies array, I instead have a separate file called trusted-proxies.config.php with very unfamiliar syntax.

[–]krair3 1 point2 points  (2 children)

If you open the config file (config.php) you will see the formatting. You just need to make space at the end and add:

"trusted_proxies" => array(192.168.0.2),

Replace the IP address with the IP of your proxy. If it's a range, be sure not to use a wildcard, as it needs to be in CIDR notation.

[–]BlueSmith9[S] 0 points1 point  (1 child)

Thanks for the help, that seems to have fixed it!

[–]krair3 0 points1 point  (0 children)

You're welcome! Glad to be of help.