[solved] .well-known/caldav check in 15.0.4 nextcloud sever is behind an HAproxy where SSL-offloading is being performed

Hi, I was wondering if you knew a solution for this on nginx? I’ve seen various threads listing this solution for apache, and from them I gathered that I needed to adding the following lines to my etc/nginx/sites-enabled/cloud.jackalope.tech configuration"

location = /.well-known/carddav {
        return 301 https://$host/remote.php/dav;
    }

    location = /.well-known/caldav {
        return 301 https://$host/remote.php/dav;
    }

Also in the process of searching for this I have actually found a file with much more settings information in it under etc/nginx/conf.d/nextcloud.conf

This place even has a section in it for the:

	location = /.well-known/carddav {
		return 301 $scheme://$host/remote.php/dav;
	}
	location = /.well-known/caldav {
		return 301 $scheme://$host/remote.php/dav;
	}

Which is making me think this is the proper config location. But then why do I have a file under sites-enabled? Does that need to be symlinked to the conf.d file maybe?

Here’s the forum thread I’m logging my progress and working through stuff.