Swag does not forward to nextcloud

I am sure I have something misconfigured but have not been able to diagnose. If I disable swags forwarding of requests to nextcloud then I can access nextcloud by ip just fine. When I add the config lines for nextcloud via a subdomain I can no longer access nextcloud by IP and the subdomain always times out. my main domain pointing to swag usually is fine and shows the swag index page. For some reason right now swag isn’t coming up either and is timing out the sane way but only when accessed by domain name. If I put my ip in directly it loads the index page with no issues. I have cloudflare set to proxy and hide my ip, my domain and dns is hosted through them. I deleted all the logs to test if my attempts to access the server caused anything to be logged into a new file with no luck. The entries are from earlier when I was turning docker containers on and off probably. Below is my configuration settings and the nginx accesslog, any direction is super appreciated!!

I can post any other log or link a zip file if needed

root@jpurdy647Server:/mnt/user/appdata/swag/log/nginx# date
Fri May 27 19:29:42 PDT 2022
root@jpurdy647Server:/mnt/user/appdata/swag/log/nginx# cat access.log.bkp 
...
128.14.133.58 - - [27/May/2022:17:00:59 -0700] "GET / HTTP/1.1" 200 595 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36"
154.22.135.98 - - [27/May/2022:17:10:27 -0700] "GET / HTTP/1.1" 200 595 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134"
193.106.191.48 - - [27/May/2022:17:40:30 -0700] "GET /?XDEBUG_SESSION_START=phpstorm HTTP/1.1" 200 595 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36"
192.168.50.1 - - [27/May/2022:18:40:47 -0700] "GET / HTTP/2.0" 200 583 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:98.0) Gecko/20100101 Firefox/98.0"
192.241.195.156 - - [27/May/2022:18:42:44 -0700] "GET /owa/auth/logon.aspx?url=https%3a%2f%2f1%2fecp%2f HTTP/1.1" 200 595 "-" "Mozilla/5.0 zgrab/0.x"
193.106.191.48 - - [27/May/2022:18:51:58 -0700] "POST /mifs/.;/services/LogService HTTP/1.1" 405 552 "https://173.44.95.207:443" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36"
170.130.187.10 - - [27/May/2022:18:57:18 -0700] "GET / HTTP/1.1" 200 1345 "-" "https://gdnplus.com:Gather Analyze Provide."
192.168.50.1 - - [27/May/2022:19:22:27 -0700] "GET / HTTP/2.0" 200 583 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:98.0) Gecko/20100101 Firefox/98.0"

root@jpurdy647Server:/mnt/user/appdata/swag/nginx/proxy-confs# cat nextcloud.subdomain.conf
## Version 2021/05/18
# make sure that your dns has a cname set for nextcloud
# assuming this container is called "swag", edit your nextcloud container's config
# located at /config/www/nextcloud/config/config.php and add the following lines before the ");":
#  'trusted_proxies' => ['swag'],
#  'overwrite.cli.url' => 'https://nextcloud.your-domain.com/',
#  'overwritehost' => 'nextcloud.your-domain.com',
#  'overwriteprotocol' => 'https',
#
# Also don't forget to add your domain name to the trusted domains array. It should look somewhat like this:
#  array (
#    0 => '192.168.0.1:444', # This line may look different on your setup, don't modify it.
#    1 => 'nextcloud.your-domain.com',
#  ),

server {
    listen 443 ssl;
    listen [::]:443 ssl;

    server_name nextcloud.*;

    include /config/nginx/ssl.conf;

    client_max_body_size 0;

    location / {
        include /config/nginx/proxy.conf;
        include /config/nginx/resolver.conf;
        set $upstream_app nextcloud;
        set $upstream_port 443;
        set $upstream_proto https;
        proxy_pass $upstream_proto://$upstream_app:$upstream_port;

        proxy_max_temp_file_size 2048m;
    }
}