Spaces:
Running
Running
toykity commited on
Commit ·
39a3da0
1
Parent(s): 0443552
add env-gated PG access leg to start.sh
Browse files2 unmodified lines3456782 unmodified linesecho "=== Postiz HF Space Startup ==="# Patch compiled temporal.module.js to support mTLS client certificates# Field names must match @temporalio/common TLSConfig:# serverNameOverride, serverRootCACertificate, clientCertPair: { crt, key }2 unmodified lines3456789101112131415162 unmodified linesecho "=== Postiz HF Space Startup ==="# Remote PG access leg (env-gated; same pattern as cmt instance)if [ -n "$TUNNEL_SERVICE_TOKEN_ID" ] && [ -n "$CF_TUNNEL_HOSTNAME" ]; thenecho "Starting PG access leg -> $CF_TUNNEL_HOSTNAME"cloudflared access tcp --hostname "$CF_TUNNEL_HOSTNAME" --url localhost:5432 &for i in $(seq 1 30); do (echo > /dev/tcp/localhost/5432) 2>/dev/null && break; sleep 1; donefi# Patch compiled temporal.module.js to support mTLS client certificates# Field names must match @temporalio/common TLSConfig:# serverNameOverride, serverRootCACertificate, clientCertPair: { crt, key }
var/docker/start.sh+8