Articles
Docker compose: nginx and wordpress behind Cloudflare — HTTPS to HTTP proxying problem
05.03.2023
The article discusses a problem faced while using Cloudflare's Flexible proxying with Docker Compose and WordPress. The author explains that requests to Cloudflare are sent via HTTPS, but from Cloudflare to the server via HTTP, causing WordPress to fail. The solution the author provides is to create two folders on the host machine, one to store certificates and the other to store ACME challenges from Let's Encrypt, and mount them on the Nginx host.