I have two containers, one of which is running NGINX as a reverse proxy for serveral other containers. One of the other containers is running Apache with SSL enabled and configured. I have seen several configuration examples in which, to the best of my understanding, NGINX handles the certificates instead of Apache, and merely pipes through everything else to some non-SSL Apache.
Now, I'd rather have Apache handle its own certificates, particularly because it makes my life easier when managing them them (using a dockerized letsencrypt, which mounts the volumes from the relevant Apache container and drops the certificates in all the right places).
The issue is that I can't find any example configuration for NGINX to just transparently proxy everything through to the Apache container.
That's because nginx can't do that.
It can terminate an SSL connection, but it cannot pass one through.
You have at least two options: