How do I route cloudflare pages through my nginx proxy which is hosted locally using cloudflared?
I have a web app hosted on cloudflare pages and I have my other services running in a docker network with nginx as the reverse proxy locally which is being tunnelled using cloudflare tunnel to a wildcare domain name
*.example.com
. I am able to access all my other services as you can see in the template below like api.example.com
, search.example.com
but whenever I go app.example.com
which is supposed to proxy to my cloudflare pages, I get a 400 bad request
page. How do i resolve this? Is it happening because of the ssl certificates I am using as the certificates being used in my nginx proxy are locally signed ssl certificates. I have been struggling with this. Can anyone please help me?1 Reply
Here is the nginx config template that I am using: