Small authenticated admin UI for managing Phala router upstream nodes.
This repository is intentionally a standalone application. The deployment compose file only starts the service and injects environment variables; HTML, CSS, JavaScript, and server logic live in this repository instead of being embedded into a Phala deployment YAML.
- Node.js 22
- No npm dependencies
- Basic Auth for the page
- Bearer token when calling router admin endpoints
Create .env from .env.example, then create config/routers.json from
config/routers.example.json.
Required environment variables:
GATEWAY_ADMIN_TOKEN: Bearer token for router admin APIs.BASIC_AUTH_USER: Basic Auth user for this admin page.BASIC_AUTH_PASSWORD_SHA256: SHA-256 hash of the Basic Auth password.
Optional environment variables:
PORT: HTTP listen port, default8080.METRICS_TIMEOUT_MS: timeout for upstream metrics requests, default2500.ROUTERS_FILE: JSON file with router definitions.ROUTERS_JSON: inline router JSON fallback whenROUTERS_FILEis not used.
node --check server.js
docker compose config