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 => '192.168.1.85:444',
    1 => 'home.server.com',
  ),
  'overwrite.cli.url' => 'https://home.server.com',
  'overwritehost'     => 'home.server.com',
  'overwriteprotocol' => 'https',
  'overwritewebroot'  => '/nextcloud',

Please advise.

Hello,

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 !!

Thanks.

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

https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/reverse_proxy_configuration.html

https://docs.nextcloud.com/server/stable/admin_manual/installation/nginx.html