Skip to content

About

Authenticated admin page for Phala router upstream management.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

23 Commits

Folders and files

Repository files navigation

Phala Router Admin Page

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.

Runtime

  • Node.js 22
  • No npm dependencies
  • Basic Auth for the page
  • Bearer token when calling router admin endpoints

Configuration

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, default 8080.
  • METRICS_TIMEOUT_MS: timeout for upstream metrics requests, default 2500.
  • ROUTERS_FILE: JSON file with router definitions.
  • ROUTERS_JSON: inline router JSON fallback when ROUTERS_FILE is not used.

Local Check

node --check server.js
docker compose config

About

Authenticated admin page for Phala router upstream management.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages