#!/usr/bin/env bash
# Optional: only if the messaging connection itself needs the Static egress route.
# Human/secret manager supplies QUOTAGUARDSTATIC_URL in this gateway environment.
# Disable shell tracing before handling secrets; never echo the connection.
set +x
set -eu
: "${QUOTAGUARDSTATIC_URL:?Supply the existing Static subscription connection securely}"
export TELEGRAM_PROXY="$QUOTAGUARDSTATIC_URL"
export DISCORD_PROXY="$QUOTAGUARDSTATIC_URL"
# Use this as startup for the intended gateway, or persist equivalent secret values
# in its active-profile environment before restarting the existing managed service.
exec hermes gateway run
