The repository includes railway.toml with:
npm run startas the start command/healthas the health check path
- one replica
REQUIRE_AUTH=true- a strong
PROXY_SESSION_SECRET DRIVER_PROXY_TRACE=false- modest idle timeout and max session duration
PROXY_SESSION_SECRET
PORTHOSTDRIVER_CONSUMER_ME_URLDRIVER_SESSION_URLDEFAULT_DRIVER_COUNTRYDEFAULT_DRIVER_NODE_TYPEDEFAULT_DRIVER_CAPTCHA_SOLVERDEFAULT_SESSION_IDLE_TIMEOUT_MSDEFAULT_SESSION_MAX_DURATION_MSDRIVER_PROXY_VERBOSEDRIVER_PROXY_TRACEDRIVER_PROXY_TRACE_DIR
- keep tracing off by default and enable it only for debugging
- monitor active session count and cleanup lag
- prefer colocating the proxy near the workloads that use it
- add Redis or another shared store before scaling to multiple stateless replicas