Last active
February 7, 2025 18:35
-
-
Save supersonictw/a19ca7eb887f62ef874ef8678da39cb8 to your computer and use it in GitHub Desktop.
CloudFlared OpenRC for Alpine Linux wget -O - https://ncurl.xyz/s/nUqux-KNg | sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/sbin/openrc-run | |
# CloudFlared OpenRC for Alpine Linux | |
# https://github.com/cloudflare/cloudflared | |
# SPDX-License-Identifier: Apache-2.0 | |
cloudflare_token="YOUR_TOKEN_HERE" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/sbin/openrc-run | |
# CloudFlared OpenRC for Alpine Linux | |
# https://github.com/cloudflare/cloudflared | |
# SPDX-License-Identifier: Apache-2.0 | |
name=$(basename $(readlink -f $0)) | |
command="/usr/local/bin/cloudflared" | |
command_args="--pidfile /var/run/$name.pid --no-autoupdate tunnel run --token $cloudflare_token" | |
command_user="cloudflared" | |
command_background="yes" | |
pidfile="/var/run/$name.pid" | |
stdout_log="/var/log/$name.log" | |
stderr_log="/var/log/$name.err" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# CloudFlared OpenRC for Alpine Linux | |
# https://github.com/cloudflare/cloudflared | |
# SPDX-License-Identifier: Apache-2.0 | |
wget -O "/etc/conf.d/cloudflared" "https://ncurl.xyz/s/vKClxaFNg" | |
wget -O "/etc/init.d/cloudflared" "https://ncurl.xyz/s/ViFub-KNg" | |
chown root:root "/etc/conf.d/cloudflared" "/etc/init.d/cloudflared" | |
chmod +x "/etc/init.d/cloudflared" | |
addgroup -S cloudflared | |
adduser -S -H -s "/bin/ash" -h "/dev/null" -g cloudflared -G cloudflared cloudflared | |
echo "Done." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To install
cloudflared