Compose-Examples/examples/nextcloud/README.md

43 lines
876 B
Markdown
Raw Normal View History

2023-02-23 00:02:20 +00:00
# References
2023-02-15 21:45:31 +00:00
2024-05-16 16:43:39 +00:00
- https://github.com/nextcloud/docker
2023-02-24 22:23:38 +00:00
- https://hub.docker.com/r/linuxserver/nextcloud
# Notes
If you plan on using a reverse proxy, you will have to define your domain or subdomain as trusted proxy domain.
The relevant nextcloud configuration file to define this is located at:
````
2024-05-16 16:43:39 +00:00
# linuxserver image
2023-02-24 22:23:38 +00:00
/<your-volume-path>/config/www/nextcloud/config/config.php
2024-05-16 16:43:39 +00:00
# official nextcloud image
/<your-volume-path>/nextcloud/app/config/
2023-02-24 22:23:38 +00:00
````
2024-05-16 16:43:39 +00:00
Adjust the PHP file and put in your subdomains as well as trusted proxy IPs.
Something like this:
2023-02-24 22:23:38 +00:00
````
<?php
$CONFIG = array (
...
'trusted_domains' =>
array (
0 => 'nextcloud.example.com',
1 => 'nextcloud.anotherdomain.com',
),
2024-05-15 12:57:22 +00:00
'trusted_proxies' =>
array (
2024-05-16 19:47:42 +00:00
0 => ['10.0.0.0/8'],
1 => ['172.16.0.0/12'],
2 => ['192.168.0.0/16'],
2024-05-15 12:57:22 +00:00
),
'maintenance_window_start' => 1,
2023-02-24 22:23:38 +00:00
...
);
````