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
|
|
|
|
|
2024-05-16 21:34:22 +00:00
|
|
|
If you plan on using a reverse proxy, you will have to adjust Nextcloud's `config.php` configuration file.
|
2023-02-24 22:23:38 +00:00
|
|
|
|
2024-05-16 21:34:22 +00:00
|
|
|
The configuration file is located at:
|
2023-02-24 22:23:38 +00:00
|
|
|
|
|
|
|
````
|
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
|
2024-05-16 21:34:22 +00:00
|
|
|
/<your-volume-path>/nextcloud/app/config/config.php
|
2023-02-24 22:23:38 +00:00
|
|
|
````
|
|
|
|
|
2024-05-16 21:34:22 +00:00
|
|
|
Within this configuration file, you should adjust the following:
|
2024-05-16 16:43:39 +00:00
|
|
|
|
2024-05-16 21:34:22 +00:00
|
|
|
- `trusted_domains` with your domain and subdomain names
|
|
|
|
- `trusted_proxies` with the IP address of your reverse proxy (defined as array)
|
|
|
|
- `overwriteprotocol` set to `https` to force encrypted https protocol communication
|
|
|
|
- `maintenance_window_start` to remove warnings in nextcloud's security scan
|
|
|
|
- `default_phone_region` to remove warnings in nextcloud's security scan
|
|
|
|
|
|
|
|
Adjust the PHP file like follows:
|
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 21:19:07 +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
|
|
|
),
|
2024-05-16 21:03:21 +00:00
|
|
|
'overwriteprotocol' => 'https',
|
2024-05-15 12:57:22 +00:00
|
|
|
'maintenance_window_start' => 1,
|
2024-05-16 21:34:22 +00:00
|
|
|
'default_phone_region' => 'DE',
|
2023-02-24 22:23:38 +00:00
|
|
|
...
|
|
|
|
);
|
|
|
|
````
|
2024-05-16 21:56:48 +00:00
|
|
|
After adjusting, restart the Nextcloud container.
|