Can I use Cloudflare Tunnel with Nginx on a non-standard port (other than 80 or 443)?

Question

Grade: Education Subject: Support
Can I use Cloudflare Tunnel with Nginx on a non-standard port (other than 80 or 443)?
Asked by:
85 Viewed 85 Answers

Answer (85)

Best Answer
(396)
Yes, you can absolutely use Cloudflare Tunnel with Nginx on a non-standard port. This is one of the key benefits of using Tunnel. You configure Nginx to listen on the desired local port (e.g., 8080, 9000), and then configure the Cloudflare Tunnel to forward traffic to that specific port. Cloudflare handles the external HTTPS connection, and Nginx receives unencrypted traffic on the local port.