Letsencrypt & Docker

I’m having an issue with Letsencrypt. The server itself is behind an HAProxy server which allows me to have the apache install and discourse as well as some other things to run from the same domains.

I have HAProxy setup (in theory) to not proxy any web requests looking for /.well-known which Apache knows to alias to the proper directory where Letsencrypt will put its files for authenticating during certificate renewals. Up until about 6 months ago this setup worked perfectly. About 6 months ago this worked for everything except for Discourse. I can’t figure out why, at all. It tells me too many redirects.

I would like to change my setup so that Discourse knows to pull files for /.well-known from the appropriate installation outside the Docker install. Is there a way to do that?