From 28d802e0ebcf6d192ac398a6b64be2760d7ba2a4 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Fri, 17 Jul 2026 15:40:59 +0200 Subject: Add cloudflare tunnel configurations --- roles/cloudflared/templates/cloudflared.initd.j2 | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 roles/cloudflared/templates/cloudflared.initd.j2 (limited to 'roles/cloudflared/templates/cloudflared.initd.j2') diff --git a/roles/cloudflared/templates/cloudflared.initd.j2 b/roles/cloudflared/templates/cloudflared.initd.j2 new file mode 100644 index 00000000..72368c17 --- /dev/null +++ b/roles/cloudflared/templates/cloudflared.initd.j2 @@ -0,0 +1,10 @@ +#!/sbin/openrc-run + +description="Cloudflare Tunnel" +command="/usr/local/bin/cloudflared" +command_args="tunnel --no-autoupdate run --token {{ cloudflared_tunnel_token }}" +command_background=true +pidfile="/run/cloudflared.pid" +depend() { + need net +} -- cgit v1.2.3