reference/relay.md
Relay Reference
Relay enables hosted clients to reach private servers without opening inbound ports.
Server Flow
- register:
POST /api/v1/relay/register - pull queue:
POST /api/v1/relay/pull - respond:
POST /api/v1/relay/respond
Client Flow
- open
/link?relayCode=... - exchange code:
POST /api/v1/pair/exchange - client calls proxied API at
/r/:serverId/api/v1/...
Endpoints
GET /api/v1/healthPOST /api/v1/relay/registerPOST /api/v1/relay/pullPOST /api/v1/relay/respondPOST /api/v1/pair/exchangeALL /r/:serverId/*
Environment Variables
RELAY_PORT(default8787)RELAY_HOST(default0.0.0.0)RELAY_PUBLIC_BASE_URL(recommended)
Source
- App:
apps/relay - Dockerfile:
docker/Relay.Dockerfile - Image:
ghcr.io/tomszenessy/mino-relay