How do I configure Nginx Proxy Manager to work with Cloudflare's DNS and Cloudflared?

Question

Grade: Education Subject: Support
How do I configure Nginx Proxy Manager to work with Cloudflare's DNS and Cloudflared?
Asked by:
85 Viewed 85 Answers

Answer (85)

Best Answer
(583)
First, ensure Cloudflared is installed and tunneled, exposing a local port. In Nginx Proxy Manager, create a new proxy host. For the domain name, use the domain you've configured in Cloudflare. Set the scheme to `http` or `https` depending on your backend service. For the forward host/port, use `localhost` and the port Cloudflared is forwarding traffic to. Crucially, disable SSL in Nginx Proxy Manager as Cloudflare handles SSL termination. Finally, configure Cloudflare DNS records to point to your server's IP address, ensuring the proxy status is 'Proxied' (orange cloud).