Connects to the QUIC endpoints in mpp-backend and un-protobufs the proxy data.
Environment variables:
QUIC_ENDPOINT=127.0.0.1:4433
WEBSOCKET_ENDPOINT=0.0.0.0:8080
PROXY_SECRET="my proxy secret"
IP_HEADER="cf-connecting-ip"
ADMIN_ID="3bff3f33e6dc0410fdc61d13"
All of them are required unless mentioned otherwise!
QUIC_ENDPOINT - Where mpp's quic endpoint is located (probably quic.backend.multiplayerpiano.net)
WEBSOCKET_ENDPOINT - Where you'd like to host the proxy
PROXY_SECRET - Make sure this matches mpp-backend's proxySecret setting!
IP_HEADER (optional, default SocketAddr) - The header where the player's actual IP is located! Most of the time X-Real-IP, or CF-Connecting-IP. Does not support XFF.
ADMIN_ID - Your ID. This user has permission to run >proxyjs, >notification and >debug.
You also need a quic_cert.pem from mppbackend's secrets!