تخطَّ إلى المحتوى

admin-api

هذا المحتوى غير متوفر بلغتك بعد.

System metrics, service health, session management, and audit log API for your ɳSelf instance. Pro plugin.

Requires: Basic license tier or higher. nself license set nself_pro_...

Terminal window
nself license set nself_pro_xxxxx...
nself plugin install admin-api

Provides admin-only REST endpoints for monitoring and managing a running ɳSelf instance. Exposes service health checks, real-time system metrics, active session enumeration and revocation, and a queryable audit log. All endpoints require the ADMIN_API_SECRET header and are restricted at the Nginx layer.

Env VarDefaultDescription
ADMIN_API_PORT3212Admin API service port
ADMIN_API_SECRETnoneRequired bearer secret for all admin endpoints
ADMIN_SESSION_RETENTION90Number of days to retain session records
PortPurpose
3212Admin API REST endpoints

2 tables added to your Postgres database:

  • np_admin_api_sessions: tracked admin session records
  • np_admin_api_audit_log: admin action audit trail
RouteTargetNotes
/admin-api/Admin APIRestricted, authentication required