Skip to content

Instantly share code, notes, and snippets.

@sirkirby
Created January 12, 2023 19:51
Show Gist options
  • Save sirkirby/c706b86a32ebfaffb0f1c45f4ecc1f43 to your computer and use it in GitHub Desktop.
Save sirkirby/c706b86a32ebfaffb0f1c45f4ecc1f43 to your computer and use it in GitHub Desktop.
[Unit]
Description=Cloudflare Tunnel
After=network.target
[Service]
TimeoutStartSec=0
Type=notify
ExecStart=/usr/local/bin/cloudflared --config /etc/cloudflared/config.yml --autoupdate-freq 24h --origincert /etc/cloudflared/cert.pem
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment