DAV not working

Nextcloud version: 20.0.3
Operating system and version: Raspbian Buster
nginx version: (nextcloud docker version) 1.18.0, (reverse proxy version) 1.18.0
PHP version: 7.3.25

The issue you are facing:
I can not get caldav or carddav working while trying to use proxy_pass from my reverse proxy. I have tried many different configurations. My url does redirect to what the docs say it should (https://domain.com/remote.php), when trying to reach https://domain.com/.well-known/caldav. I am not receiving an error inside of nextcloud.

There is nothing of relevance in the nextcloud log but I can share if need be.

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'datadirectory' => '/data',
  'instanceid' => 'instanceid',
  'passwordsalt' => 'passwordsalt',
  'secret' => 'secret',
  'trusted_domains' => 
  array (
    0 => '192.168.1.204',
    1 => 'domain.com',
  ),
  'dbtype' => 'mysql',
  'version' => '20.0.3.2',
  'dbname' => 'nextcloud',
  'dbhost' => 'nextclouddb:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'username',
  'dbpassword' => 'password',
  'installed' => true,
  'default_locale' => 'en_US',
  'allow_user_to_change_display_name' => false,
  'session_keepalive' => true,
  'overwrite.cli.url' => 'https://domain.com',
  'overwriteprotocol' => 'https',
  'overwritehost' => 'domain.com',
  'trusted_proxies' => '192.168.1.104',