#!/bin/sh set -e SERVICE=$1 HOSTNAME=$2 TUNNEL_ID=$3 echo "Creating tunnel config for $HOSTNAME" cat < cloudflared-tunnel-config.yml tunnel: $TUNNEL_ID credentials-file: /etc/cloudflared/auth.json ingress: - hostname: $HOSTNAME service: $SERVICE - service: http_status:404 EOF