Configuration
headtotails is configured through environment variables.
Required
HEADSCALE_ADDR: Headscale gRPC address (example:headscale:50443)HEADSCALE_API_KEY: Headscale API keyOAUTH_CLIENT_ID: OAuth client id for callersOAUTH_CLIENT_SECRET: OAuth client secret for callersOAUTH_HMAC_SECRET: secret for signing bearer tokens
Common optional
TAILNET_NAME(default-): user scope for key operationsLISTEN_ADDR(default:8080): bind addressTLS_CERT,TLS_KEY: enable HTTPS listenerLOG_LEVEL(defaultinfo)ENVIRONMENT(defaultproduction)
Replica note
Current OAuth bearer token validation is in-memory by default. For reliable operation, run a single replica or ensure sticky routing for token issuance and subsequent API calls.