Unraid-Cloudflared-Tunnel

Unraid-Cloudflared-Tunnel

Docker app from Figro's Repository

Overview

Simple cloudflared docker container for Unraid. Simply add your token from cloudflare dashboard as a variable and your done. There are advanced environement variables that can be set. The default values in these fields are what cloudflared will use by default if they are not set. There is more environement variables that can be added but will need a value entered or other configuration to use so I have removed them from the template. They can be seen on the github readme or the cloudflared docs. Cloudflared Docs: https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/ https://hub.docker.com/r/cloudflare/cloudflared https://github.com/cloudflare/cloudflared Github: https://github.com/AriaGomes/Unraid-Cloudflared-Tunnel DockerHub: https://hub.docker.com/r/figro/Unraid-cloudflared-tunnel Discord: Figro#4064

Runtime arguments

Web UI
http://[IP]:[PORT:46495]
Network
bridge
Shell
sh
Privileged
false

Template configuration

TUNNEL_TOKENVariable

Associates the cloudflared instance with a specific tunnel. The tunnel’s token is shown in the dashboard when you first create the tunnel. You can also retrieve the token using the API.

NO_AUTOUPDATEVariable

Disables automatic cloudflared updates. Set to false or delete to autoupdate. Autoupdating can cause tunnel to go down.

Value
true
TUNNEL_RETRIESVariable

Specifies the maximum number of retries for connection/protocol errors. Retries use exponential backoff (retrying at 1, 2, 4, 8, 16 seconds by default), so it is not recommended that you increase this value significantly.

Default
5
Value
5
TUNNEL_REGIONVariable

Allows you to choose the regions to which connections are established. Currently the only available value is us, which routes all connections through data centers in the United States. Omit or leave empty to connect to the global region.

TUNNEL_TRANSPORT_PROTOCOLVariable

Specifies the protocol used to establish a connection between cloudflared and the Cloudflare global network. Available values are auto, http2, and quic.

Value
auto
TUNNEL_EDGE_BIND_ADDRESSVariable

Specifies the outgoing IP address used to establish a connection between cloudflared and the Cloudflare global network.

TUNNEL_EDGE_IP_VERSIONVariable

Specifies the IP address version (IPv4 or IPv6) used to establish a connection between cloudflared and the Cloudflare global network. Available values are auto, 4, and 6.

Value
auto
TUNNEL_GRACE_PERIODVariable

When cloudflared receives SIGINT/SIGTERM it will stop accepting new requests, wait for in-progress requests to terminate, then shut down. Waiting for in-progress requests will timeout after this grace period, or when a second SIGTERM/SIGINT is received.

Value
30s
TUNNEL_ORIGIN_CERTVariable

Specifies the account certificate for one of your zones, authorizing the client to serve as an origin for that zone. You can obtain a certificate by using the cloudflared tunnel login command or by visiting https://dash.cloudflare.com/argotunnel.

TUNNEL_METRICSVariable

Exposes a Prometheus endpoint on the specified IP address/port, which you can then query for usage metrics. (You will need to add a port to the unraid template)

Value
0.0.0.0:46495
TUNNEL_LOGLEVELVariable

Specifies the verbosity of logging. The default info level does not produce much output, but you may wish to use the warn level in production. Available values are: debug, info, warn, error, fatal.

Value
info
Metrics PortPorttcp

Exposes prometheus metrics server (Can be removed if you don't care about metrics)

Target
46495
Default
46495
Value
46495
AppdataPathrw

Used in conjuction with log, pid, and cert env variables to get more info or use your own cert. If you don't need this you can delete or ignore this.

Target
/appdata
Default
/mnt/user/appdata/cloudflared
Value
/mnt/user/appdata/cloudflared

Video

Download Statistics

443,752
Total Downloads
38,547
This Month
23,532
Avg / Month

Total Downloads Over Time

Loading chart...

Details

Repository
figro/unraid-cloudflared-tunnel
Last Updated2026-04-04
First Seen2022-10-20

Run Unraid-Cloudflared-Tunnel on Unraid.

Unraid-Cloudflared-Tunnel is listed in Community Apps for Unraid OS. Explore Unraid to build a flexible home server, NAS, or homelab.