nginx reverse proxy nextcloud 1

nginx reverse proxy nextcloud

/**
Add this to config.php (in /nextcloud/config/config.php)
to make the nextcloud instance aware of being in a proxy
and using correct information when making URLs
**/

'trusted_proxies'   => ['172.0.0.1'],
  'overwritehost'     => 'domain.com',
  'overwriteprotocol' => 'https',
  'overwritecondaddr' => '^172\.0\.0\.1$',

Here is what the above code is Doing:
1. trusted_proxies: This is the IP address of the proxy server.
2. overwritehost: This is the domain name of the Nextcloud instance.
3. overwriteprotocol: This is the protocol used to access the Nextcloud instance.
4. overwritecondaddr: This is the IP address of the proxy server.

Similar Posts