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)
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',
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 !!