I have noticed that since one of the last Nextcloud updates I get a Security & setup warning!
How can I change my settings to solve these messages?
* Your data directory and files are probably accessible from the internet. The .htaccess file is not working. It is strongly recommended that you configure your web server so that the data directory is no longer accessible, or move the data directory outside the web server document root.
* Your "trusted_proxies" setting is not correctly set, it should be an array of IP addresses - optionally with range in CIDR notation. For more details see the documentation ↗.
In the config.php I have the hostname (swag) in the trusted_proxies array.
As I understand is to change this to an IP4 or IP6 address.
What is the correct IP address from swag?
In my router I forward the port 443 to 192.168.128.xx
The docker container has a network (swag_default) in which swag has the address 172.23.0.x/16
I think I have to insert the IP addreas of the docker network (172.23.0.x/16). How can I ensure that swag gets the same IP address after a restart of docker?
The second error message from nextcloud has now disappeared.
Now I just have to solve the following error:
Your data directory and files are probably accessible from the internet. The .htaccess file is not working. It is strongly recommended that you configure your web server so that the data directory is no longer accessible, or move the data directory outside the web server document root.