3. Create a Cloudflare Tunnel
Cloudflare Tunnel allows you to securely publish your MyFin server to the Internet without exposing your public IP address or opening ports on your router.
Instead of incoming connections, your server establishes an encrypted outbound connection to Cloudflare. Remote users connect to Cloudflare, which securely forwards the traffic through the tunnel to your server.
3.1 Open the Cloudflare Dashboard
Log in to your Cloudflare account.
Select your domain.
Navigate to:
Zero TrustIf prompted, create a Zero Trust account (the free plan is sufficient for most installations).
3.2 Create a Tunnel
Navigate to:
Networks → TunnelsClick:
Create a TunnelChoose:
CloudflaredGive your tunnel a name.
Example:
MyFinClick Save Tunnel.
3.3 Copy the Tunnel Token
Cloudflare will display several installation methods.
Choose:
DockerYou will be shown a command similar to:
docker run cloudflare/cloudflared:latest tunnel run --token eyJh...Copy only the token after:
--tokenExample:
eyJhIjoiZmY5...3.4 Add the Token to Docker Compose
In the next step:
4. Running MyFin
We will create the .env file were we will add this token
For now paste it somewhere safe so we can use it in the next step