aboutsummaryrefslogtreecommitdiff
path: root/net/cloudflared/files
diff options
context:
space:
mode:
authorVinícius Zavam <egypcio@FreeBSD.org>2021-04-12 21:22:13 +0000
committerVinícius Zavam <egypcio@FreeBSD.org>2021-04-12 21:27:58 +0000
commit3490a531954e1746ee3ce97d5a75e4cef298a214 (patch)
tree795f50845a602bcc3dd467fc1d3ec043d9799c47 /net/cloudflared/files
parent0c8a1a6d2bfc516b19dbd5c2f2c8a774cb118ba7 (diff)
downloadports-3490a531954e1746ee3ce97d5a75e4cef298a214.tar.gz
ports-3490a531954e1746ee3ce97d5a75e4cef298a214.zip
net/cloudflared: update 2021.3.5 to 2021.4.0, and fix rc script
- add notes about tunnel modes - default mode starts a free tunnel, using trycloudflare.com PR: 254854 Reported by: ale@
Diffstat (limited to 'net/cloudflared/files')
-rw-r--r--net/cloudflared/files/cloudflared.in10
1 files changed, 6 insertions, 4 deletions
diff --git a/net/cloudflared/files/cloudflared.in b/net/cloudflared/files/cloudflared.in
index d54cd1d55846..45ceb4e384f5 100644
--- a/net/cloudflared/files/cloudflared.in
+++ b/net/cloudflared/files/cloudflared.in
@@ -11,14 +11,16 @@
# cloudflared_conf (str) Config file to use
# Default: %%ETCDIR%%/config.yml
#
-# cloudflared_mode (str) Mode to run cloudflared as (tunnel, or proxy-dns)
-# Default: tunnel
+# cloudflared_mode (str) Mode to run cloudflared as (e.g. 'tunnel', 'tunnel run'
+# or 'proxy-dns'). Should you use the default, a free
+# tunnel is set up for you.
+# Default: "tunnel"
. /etc/rc.subr
name="cloudflared"
rcvar="cloudflared_enable"
-logfile="/var/log/cloudflared/cloudflared.log"
+logfile="/var/log/cloudflared.log"
pidfile="/var/run/cloudflared.pid"
procname="%%PREFIX%%/bin/cloudflared"
@@ -29,6 +31,6 @@ load_rc_config $name
: ${cloudflared_mode:="tunnel"}
command="/usr/sbin/daemon"
-command_args="-o ${logfile} -p ${pidfile} -f ${procname} --cred-file ${cloudflared_conf} ${cloudflared_mode}"
+command_args="-o ${logfile} -p ${pidfile} -f ${procname} --config ${cloudflared_conf} ${cloudflared_mode}"
run_rc_command "$1"