NC22 behind reverse proxy "access through untrusted domain" issue

I’m running NextCloud 22.1.1 on WSL2 on Windows 10. Apache is running as a reverse proxy on the same machine which is properly passing traffic to the NextCloud instance running on the same machine. I also have another NextCloud (identical duplicate of the properly running one) on another computer on the same LAN. No matter what I do I always get the “access through untrusted domain” even though every possible domain is listed in the config.php file. What am I missing? Not sure if I’ve setup something wrong with the proxy or the NC configuration. I suspect it’s the later since I can access the site but just get that error.

Here’s the relevant portions of the config.php:

‘trusted_domains’ =>
array (
0 => ‘localhost’,
1 => ‘’,
2 => ‘’, <–IP of computer running 2nd NC instance
3 => ‘
‘trusted_proxies’ => [‘’], ← reverse proxy server
‘overwritehost’ => ‘’,
‘overwriteprotocol’ => ‘https’,