I have ghost hosted inside a docker-compose stack with an nginx proxy set up to forward a portion of the content to a web app and a portion to ghost. In production, nginx provides the HTTP to HTTPS redirect so ghost doesn’t have to.
I have an API hosted on the web-app side (in a separate container) that is querying Ghost for information. I want it to communicate internally across the docker network, so it calls into http://ghost:2368/(etc.) In development, when ghost is hosted on http, this works great. In production, when I’m on https, Ghost tries to be smart and redirect that http call to https, which doesn’t work.
Tl;dr: Is there a way to stop ghost redirecting http traffic when the site url is set to https, so that the two docker containers can communicate?