You said that "originally, the Nextcloud server handled HTTPS with Let’s Encrypt at domain.com" and now you are redirecting to 192.168.1.182 on port 443. Is this Nextcloud server still serving HTTPS with Let’s Encrypt for domain.com?
I'm asking because if you are using Caddy in front of that HTTPS webserver as a reverse-proxy, you will need to override the Host header with the configured upstream address. Here's the documentation.
I think it would be something like this (?):