18 lines
810 B
Bash
Executable file
18 lines
810 B
Bash
Executable file
#!/bin/sh
|
|
set -eu
|
|
|
|
script_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
|
compose_file="$script_dir/compose.global.yaml"
|
|
|
|
: "${OPENPENCIL_RELAY_EDGE_PUBLIC_BIND_IP:?set the dedicated overseas IPv4}"
|
|
: "${OPENPENCIL_RELAY_EDGE_EXPECTED_CN_FEDERATION_UPSTREAM:?set the audited fixed CN host:port}"
|
|
: "${OPENPENCIL_RELAY_EDGE_EXPECTED_CN_INNER_WSS_UPSTREAM:?set the audited fixed inner host:port}"
|
|
: "${OPENPENCIL_RELAY_EDGE_EXPECTED_CN_FEDERATION_NAME:?set the audited outer TLS DNS name}"
|
|
|
|
"$script_dir/install-global-new-connection-rate.sh" \
|
|
"$OPENPENCIL_RELAY_EDGE_PUBLIC_BIND_IP"
|
|
OPENPENCIL_RELAY_EDGE_VALIDATION_MODE=production "$script_dir/validate.sh"
|
|
docker compose -f "$compose_file" config -q
|
|
exec docker compose -f "$compose_file" up \
|
|
--abort-on-container-exit --exit-code-from global-edge
|