Certain frames on the site I’m serving will not load due to mixed content warnings which I can see in the browser developer console. See error message below.
Remove the /*, this is redundant and very slightly less efficient than using * or omitting the matcher altogether (which is the same as *), because it makes Caddy do a path comparison on every request, which is unnecessary (only nanoseconds of difference per request, but still).
reverse_proxy 172.17.0.2:2368
That said, @jok is probably right, this is most likely a configuration problem on your upstream app. Caddy sets the X-Forwarded-Proto automatically, but if the upstream app doesn’t use it to determine what scheme to use for its URLs, then there’s nothing else you can really do in Caddy to solve it.
Yeah, I use ghost! I have indeed configured the url variable but I configured it as http://website.com in order to use allow me to reverse proxy and secure the site using caddy. I’m concerned that if I change the url variable to https://website.com instead, it will cause issues with caddy not being able to secure the site due to the site already using https://. Do you think this would be an issue?
Bugger, alright I will try deploy another container as you’ve suggest but I’m concerned it might not work with Caddy as it’ll think it’s already protected with https. Fingers crossed!
Hey @jok, I have confirmed that redeploying my container with https://website.com instead of http://website.com does not cause any issues and it has fixed my mixed content frame previews! Thank you very much for the advice!