Something went wrong. Try again.
Something went wrong. Try again.
1234567891011#!/usr/bin/env bash# The proxy container: GreenPT egress proxy + SSH forward into the sandbox.# It is the only thing on both networks, so it is the only way in and out.set -e
if [ -n "${SSH_FORWARD_TARGET:-}" ]; then echo "[proxy] forwarding 127.0.0.1:2222 -> ${SSH_FORWARD_TARGET}:22" socat TCP-LISTEN:2222,fork,reuseaddr "TCP:${SSH_FORWARD_TARGET}:22" &fi
exec node /app/greenpt-proxy.mjs