How can I redirect my reverse proxyto my nextcloud?

Hi guys,

I have configured my reverse proxy(centos 7) with nginx, selinux and firewall.

I have no idea what to change for /usr/share/nginx/html/nextcloud/config/config.php on my nextcloud server(centos7)

'trusted_domains' => 
  array (
    0 => '',
    1 => '',
  'overwrite.cli.url' => '',
  'overwritehost'     => '',
  'overwriteprotocol' => 'https',
  'overwritewebroot'  => '/nextcloud',

Please advise.


Indeed it is always best and secure thing to do it manually but,

For users like you are me, who are kind of semi technical, there are options like NginX Proxy Manager (NPM).

NPM is build as docker image so simple and easy installation and once up, it gives you a nice Browser based GUI interface control panel for adding and configuring stuff. Pretty easy to add domains, or external SSL or pulling Let’s Encrypt there itself with auto renewal !!

I am using it, and I would recommend it too. Performance is really good with next to nothing system resource consumption !!


I don’t really get what is your issue, but please review the official docs and hopefully find and an answer: