From 505076de7c88821ba743930fa59b816816f92fd8 Mon Sep 17 00:00:00 2001 From: Brian Zalewski <59970525+ProfessorManhattan@users.noreply.github.com> Date: Sat, 18 May 2024 06:51:11 +0000 Subject: [PATCH] Latest --- .../dot_local/bin/post-installx/executable_post-cloudflared.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/home/dot_local/bin/post-installx/executable_post-cloudflared.sh b/home/dot_local/bin/post-installx/executable_post-cloudflared.sh index aca8bb4b..24792240 100644 --- a/home/dot_local/bin/post-installx/executable_post-cloudflared.sh +++ b/home/dot_local/bin/post-installx/executable_post-cloudflared.sh @@ -57,7 +57,8 @@ if command -v cloudflared > /dev/null; then logg info 'Setting up DNS records for CloudFlare Argo tunnels' while read DOMAIN; do if [ "$DOMAIN" != 'null' ]; then - logg info "Setting up $DOMAIN for access through cloudflared" + logg info "Setting up $DOMAIN for access through cloudflared (Tunnel ID: $TUNNEL_ID)" + logg info "Running sudo cloudflared tunnel route dns -f "$TUNNEL_ID" "$DOMAIN"" sudo cloudflared tunnel route dns -f "$TUNNEL_ID" "$DOMAIN" && logg success "Successfully routed $DOMAIN to this machine's cloudflared Argo tunnel" fi done< <(yq '.ingress[].hostname' /usr/local/etc/cloudflared/config.yml)