[Unit] Description=Cloudflare Tunnel for Clawdbot # Ensure the tunnel only starts after the gateway is up After=network-online.target clawdbot-gateway.service Wants=network-online.target clawdbot-gateway.service [Service] # Replace with your linux username User= Group= Type=notify # Replace with your cloudflared binary path (usually /usr/local/bin/cloudflared or /usr/bin/cloudflared) # Replace with your created tunnel name/UUID ExecStart= tunnel run Restart=always RestartSec=5s # Optional: Point to specific credentials if not in default ~/.cloudflared/ location # Environment=TUNNEL_ORIGIN_CERT=/home//.cloudflared/cert.pem [Install] WantedBy=multi-user.target