My apologies if this has been posted before. I am using Nextcloud, Let’s Encrypt (swag) and MariaDB images using Docker Compose file. I’ve been running it for a couple of years and decided to finally attempt to fix the Security & Setup Warnings I am seeing in my Nextcloud Settings.
One of the first warnings is this:
“The reverse proxy header configuration is incorrect, or you are accessing Nextcloud from a trusted proxy.”
I believe Nginx is the web backend. I have found some possible solutions in my web searches but I don’t know enough about Nginx to know if this is the correct fix or not. I have found that I need to add my container network IP to the trusted_domains section of www/nextcloud/config/config.php. Is this a solution? If so, can I just add the subnet range (e.g. 192.168.0.1/24)? Or, do I need to add the specific IP address of the Nextcloud instance?