Skip to content
rlongdragonPublic

About

Headscale 的輕量管理中介層

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

CovaFlux

English | 中文

CovaFlux is a lightweight management API and development web console for Headscale.

It supports both a mock Headscale client and a real Headscale REST API client. The development default is the mock client. When HEADSCALE_CLIENT_MODE=rest and HEADSCALE_API_KEY are configured, user management, pre-auth key creation, node synchronization, and policy application are performed against a real Headscale instance.

Development

npm install
npm run prisma:generate
DATABASE_URL=file:$PWD/data/covaflux.dev.db npm -w @covaflux/api exec prisma migrate deploy
npm run dev:api:local
npm run dev:web:local

Connect to the Docker-managed local Headscale instance:

docker compose -f deploy/docker-compose.yml up -d headscale
docker compose -f deploy/docker-compose.yml exec headscale headscale apikeys create --expiration 365d
HEADSCALE_CLIENT_MODE=rest HEADSCALE_API_KEY=<API_KEY> npm run dev:api:local

Default bootstrap admin:

username: admin
password: change-me-password

Exit Nodes

A node must first advertise 0.0.0.0/0 and/or ::/0 (for example with tailscale up --advertise-exit-node). A CovaFlux administrator can then approve or disable those default routes from the web console or through:

POST /nodes/:id/exit-node/approve
POST /nodes/:id/exit-node/disable

Disabling exit-node access removes only the default routes and preserves other approved subnet routes. CovaFlux adds autogroup:internet:* ACL access only after the exit routes are approved; shared users or groups additionally require allowExitNode on the share.

Docker Compose

docker compose -f deploy/docker-compose.yml up --build

The Docker Compose Headscale runtime automatically creates a Headscale API key and stores it in the covaflux-secrets volume. The API service reads it through HEADSCALE_API_KEY_FILE, so no manual token copy is required.

Services:

About

Headscale 的輕量管理中介層

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages