evertramos / nginx-proxy-automation

Automated docker nginx proxy integrated with letsencrypt.
MIT License
2.66k stars 632 forks source link

Usage with Cloudflare Tunnels #302

Closed avidsapp closed 3 years ago

avidsapp commented 3 years ago

Is your feature request related to a problem? Please describe. I'm attempting to use this with Cloudflare Tunnels. The tunnel works fine with an undockerized NGINX reverse proxy and multiple domains. Cloudflared only provides a CNAME for the domain, so this may be the holdup. Encryption at the host isn't necessary as traffic to Cloudflare is still encrypted.

Describe the solution you'd like Insight on how to forward correctly through the tunnel to the dockerized proxy

Describe alternatives you've considered

avidsapp commented 3 years ago

Commenting out LETSENCRYPT_HOST, exposing only port 80, and ensuring the network matches the application network allows this to function behind Cloudflare Tunnels

evertramos commented 3 years ago

Also check #238