diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-07-17 15:40:59 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-07-17 15:40:59 +0200 |
| commit | 28d802e0ebcf6d192ac398a6b64be2760d7ba2a4 (patch) | |
| tree | 29daf2e814be989fbf8033ecf9353c8417e516bf /roles/cloudflared/templates/cloudflared.initd.j2 | |
| parent | 22988554510dd5d76df4037cebe8e6662f4dbc61 (diff) | |
Add cloudflare tunnel configurations
Diffstat (limited to 'roles/cloudflared/templates/cloudflared.initd.j2')
| -rw-r--r-- | roles/cloudflared/templates/cloudflared.initd.j2 | 10 |
1 files changed, 10 insertions, 0 deletions
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 +} |
