File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -28,15 +28,15 @@ tunnel_setup:
2828 @ bash -c ' TUNNEL_ID=$$(cloudflared tunnel list | grep "{{ TUNNEL_NAME}} " | awk "{print \$$1}" | head -n1); \
2929 if [ -z "$$TUNNEL_ID" ]; then echo "ERROR: Could not find tunnel ID"; exit 1; fi; \
3030 mkdir -p {{ CLOUDFLARE_CREDS_DIR}} ; \
31- cat > {{ CLOUDFLARE_CREDS_DIR }} /config.yml <<"EOF"
32- tunnel: $TUNNEL_ID
33- credentials-file: {{ CLOUDFLARE_CREDS_DIR}} /$TUNNEL_ID.json
34-
35-
36- - hostname: hitchhiker.optgeo.org
37- service: http://localhost:80
38- - service: http_status:404
39- EOF
31+ printf "%s\n" \
32+ " tunnel: $$ TUNNEL_ID" \
33+ " credentials-file: {{ CLOUDFLARE_CREDS_DIR}} /$$ TUNNEL_ID.json" \
34+ "" \
35+ "ingress:" \
36+ " - hostname: hitchhiker.optgeo.org" \
37+ " service: http://localhost:80" \
38+ " - service: http_status:404" \
39+ > {{ CLOUDFLARE_CREDS_DIR }} /config.yml; \
4040 echo "config.yml created at {{ CLOUDFLARE_CREDS_DIR}} /config.yml"; \
4141 echo ""; \
4242 echo "Tunnel ID: $$TUNNEL_ID"; \
You can’t perform that action at this time.
0 commit comments