How to expose a WordPress site running on port 8000 via Tunnels?

I’ve setup a WordPress site in Docker and it’s accessible at port 8000. It is not running HTTPS.

I have a domain setup in Cloudflare and I want to expose the WordPress site via a Cloudflare certificate on port 443.

However, when I configure the public hostname under Tunnels to point to my private IP, like:

{some internal ip via http}:8000

… I cannot load the site and eventually the browser times out trying to access:

{some external domain via http}:8000

So it seems that I need some way to tell Cloudflare to expose as:

{some external domain via https}::443

Does anyone know what steps I need to take to expose my WordPress site via Cloudflare provided TLS certificate, and properly map the ports to my internal network IP:port?

Sorry for the ugly URLs, the site would not allow me to provide example URLs even when using proper backticks.

Thank you.

You would use a public hostname to tell Cloudflare to route traffic for a hostname via a tunnel. This is done under the tunnel configuration page.

1 Like

Thanks. I realize that I would need a public host name. This is what I have already setup:

I need people to be able to access the site via HTTPS (port 443) externally, but have that map to HTTP port 8000 internally.

Can you share the configuration of your tunnel?