Authelia 的管理控制面板。用于管理用户、组、TOTP 设备、被禁用的 IP、i18n。
A web-based administration interface for managing Authelia authentication server with LLDAP.
/etc/hosts entries: 127.0.0.1 localhost.test auth.localhost.test ldap.localhost.testdocker-compose -f docker-compose.test-pg.yml uphttps://auth.localhost.test and login, then go to https://auth.localhost.test/auth-adminConfiguration can be provided via YAML file or environment variables. Environment variables specific to the application use the AAD_ prefix and override YAML values.
Don't forget to configure your load balancer. Authelia Admin CP should be accessible at https://{{AAD_AUTHELIA_DOMAIN}}/auth-admin/.
Authelia Admin implements concept of protected users. Protected users are users which belong to the following groups: lldap_admin, lldap_password_manager, lldap_strict_readonly, authelia_user_manager. Only users with membership in lldap_admin can do anything with other protected users. Protected users are implemented to prevent access rights escalation.
Add your users of Authelia Admin in the following groups:
You need to specify only the following environment variables for a minimal instance:
AAD_AUTHELIA_DOMAIN - Domain of Authelia server for authentication of requests, e.g., auth.yourdomain.comTRUSTED_ORIGINS - Trusted origins for CSRF protection, e.g., https://auth.yourdomain.com| Variable | Description | Default |
|---|---|---|
PORT |
Server port | 9093 |
HOST |
Server host | 0.0.0.0 |
AAD_CONFIG_PATH |
Path to config.yml | /opt/authelia-admin/config.yml |
AAD_LOGLEVEL |
Logging level | WARN |
| Variable | Description | Default |
|---|---|---|
AAD_AUTHELIA_DOMAIN |
Authelia domain for authentication | auth.localhost.test |
AAD_AUTHELIA_CONFIG_PATH |
Path to Authelia's configuration.yml (optional when AAD_DB_* define the database) |
/config/configuration.yml |
AAD_AUTHELIA_COOKIE_NAME |
Session cookie name | authelia_session |
AAD_AUTHELIA_MIN_AUTH_LEVEL |
Minimum auth level (1=password, 2=2FA) | 2 |
AAD_AUTHELIA_ALLOWED_USERS |
Comma-separated list of allowed users | (empty = all users) |
| Variable | Description | Default |
|---|---|---|
AAD_DIRECTORY_TYPE |
Directory service type | lldap-graphql |
AAD_DIRECTORY_LLDAP_GRAPHQL_ENDPOINT |
LLDAP GraphQL API endpoint | http://lldap:17170/api/graphql |
AAD_DIRECTORY_LLDAP_GRAPHQL_USER |
LLDAP admin username | admin |
AAD_DIRECTORY_LLDAP_GRAPHQL_PASSWORD |
LLDAP admin password | (required) |
AAD_DIRECTORY_LLDAP_GRAPHQL_LDAP_HOST |
LDAP host for password changes | lldap |
AAD_DIRECTORY_LLDAP_GRAPHQL_LDAP_PORT |
LDAP port for password changes | 3890 |
AAD_DIRECTORY_LLDAP_GRAPHQL_LDAP_BASE_DN |
LDAP base DN for user operations | (required for password changes) |
Authelia Admin works with Authelia's storage database: SQLite or PostgreSQL. Settings are merged per key, from lowest to highest priority:
storage section of Authelia's configuration.yml (AAD_AUTHELIA_CONFIG_PATH)AAD_DB_* environment variablesThe database type is AAD_DB_TYPE when set, otherwise the storage.local or storage.postgres section of the Authelia file. Values of the other backend are ignored. The Authelia file is optional when environment variables define the database.
Database configuration is validated at startup:
/auth-admin/health returns 500.| Variable | Description | Default | Authelia file source |
|---|---|---|---|
AAD_DB_TYPE |
PG or SQLITE, case-insensitive |
from Authelia file | storage.local / storage.postgres |
AAD_DB_SQLITE_PATH |
Path to Authelia's SQLite database | (required for SQLITE) |
storage.local.path |
AAD_DB_SQLITE_BUSY_TIMEOUT_MS |
Wait time for SQLite locks, milliseconds | 5000 |
— |
AAD_DB_PG_HOST |
PostgreSQL host | localhost |
host of storage.postgres.address |
AAD_DB_PG_PORT |
PostgreSQL port | 5432 |
port of storage.postgres.address |
AAD_DB_PG_DATABASE |
Database name | authelia |
storage.postgres.database |
AAD_DB_PG_USERNAME |
User name | authelia |
storage.postgres.username |
AAD_DB_PG_PASSWORD |
Password | (empty) | storage.postgres.password |
AAD_DB_PG_PASSWORD_FILE |
File with the password, e.g. a Docker or Kubernetes secret. Must not be combined with AAD_DB_PG_PASSWORD |
— | — |
AAD_DB_PG_SCHEMA |
Schema | public |
storage.postgres.schema |
AAD_DB_PG_TIMEOUT_MS |
Connection timeout, milliseconds (0 = no timeout) |
5000 |
storage.postgres.timeout |
AAD_DB_PG_POOL_MAX |
Maximum connection pool size | 10 |
— |
AAD_DB_PG_TLS_MODE |
disable, require, verify-ca or verify-full |
disable; verify-full when the file has a tls block |
storage.postgres.tls |
AAD_DB_PG_TLS_CA_FILE |
PEM file with trusted CA certificates | system trust store | — |
AAD_DB_PG_TLS_CERT_FILE |
PEM client certificate for mutual TLS | — | storage.postgres.tls.certificate_chain |
AAD_DB_PG_TLS_KEY_FILE |
PEM client private key for mutual TLS | — | storage.postgres.tls.private_key |
AAD_DB_PG_TLS_SERVER_NAME |
Name verified in the server certificate instead of the host | host | storage.postgres.tls.server_name |
AAD_DB_PG_TLS_MIN_VERSION |
TLS1.2 or TLS1.3 |
TLS1.2 |
storage.postgres.tls.minimum_version |
AAD_DB_PG_TLS_MAX_VERSION |
TLS1.2 or TLS1.3 |
TLS1.3 |
storage.postgres.tls.maximum_version |
*_MS variables are plain integers of milliseconds. Authelia's timeout uses Authelia duration notation: 5s, 1m30s, or a plain integer of seconds.
PostgreSQL TLS modes:
| Mode | Encrypted | Certificate chain verified | Host name verified | Authelia equivalent |
|---|---|---|---|---|
disable |
no | no | no | no tls block |
require |
yes | no (skip verify) | no | tls.skip_verify: true |
verify-ca |
yes | yes, AAD_DB_PG_TLS_CA_FILE required |
no | — |
verify-full |
yes | yes | yes | tls block |
TLS verification is not affected by NODE_TLS_REJECT_UNAUTHORIZED. Opportunistic TLS (prefer), Authelia servers fallbacks and unix:// addresses are not supported.
| Variable | Description | Default |
|---|---|---|
TRUSTED_ORIGINS |
CSRF trusted origins | (required for production) |
NODE_TLS_REJECT_UNAUTHORIZED |
Set to 0 for self-signed certificates |
(not set) |
Example of config.yml for authelia-admin:
…The application runs on port 9093 and expects the Authelia database to be mounted.
docker run -p 9093:9093 \
-v /path/to/authelia/config:/config \
-v /path/to/authelia/data:/data \
-v /path/to/authelia-admin/config.yml:/opt/authelia-admin/config.yml:ro \
-e AAD_LOGLEVEL=DEBUG \
-e TRUSTED_ORIGINS=https://auth.yourdomain.com \
ghcr.io/asalimonov/authelia-admin:latestAlternatively, using environment variables instead of a config file:
docker run -p 9093:9093 \
-v /path/to/authelia/config:/config \
-v /path/to/authelia/data:/data \
-e AAD_LOGLEVEL=DEBUG \
-e AAD_AUTHELIA_DOMAIN=auth.yourdomain.com \
-e AAD_DIRECTORY_LLDAP_GRAPHQL_ENDPOINT=http://lldap:17170/api/graphql \
-e AAD_DIRECTORY_LLDAP_GRAPHQL_USER=admin \
-e AAD_DIRECTORY_LLDAP_GRAPHQL_PASSWORD=secret \
-e TRUSTED_ORIGINS=https://auth.yourdomain.com \
ghcr.io/asalimonov/authelia-admin:latestPostgreSQL configured only with environment variables, without mounting Authelia's configuration:
docker run -p 9093:9093 \
-v /path/to/secrets:/run/secrets:ro \
-e AAD_AUTHELIA_DOMAIN=auth.yourdomain.com \
-e AAD_DIRECTORY_LLDAP_GRAPHQL_PASSWORD=secret \
-e AAD_DB_TYPE=PG \
-e AAD_DB_PG_HOST=postgres \
-e AAD_DB_PG_USERNAME=authelia \
-e AAD_DB_PG_PASSWORD_FILE=/run/secrets/postgres-password \
-e AAD_DB_PG_TLS_MODE=verify-full \
-e AAD_DB_PG_TLS_CA_FILE=/run/secrets/postgres-ca.pem \
-e TRUSTED_ORIGINS=https://auth.yourdomain.com \
ghcr.io/asalimonov/authelia-admin:latestNote: When deploying with a reverse proxy, ensure the
TRUSTED_ORIGINSmatches your domain for CSRF protection.
SQLite: Authelia Admin runs as uid 1001 and opens the database read-write. The database file and its directory must be writable by uid 1001, e.g. run Authelia with
PUID=1001andPGID=1001.
See docker-compose.yml for a complete example with Authelia, LLDAP, and Traefik.
# Install dependencies and build docker image
make build-dev
# Run Authelia, LLDAP, and Traefik via Docker Compose
make run-docker-compose
# In a second terminal, run Docker with authelia-admin with hot-reload
make run-devUse admin user with admin1234 password. The confirmation code can be found in the ./test-data/authelia/notification.txt file.
/etc/hosts entries: 127.0.0.1 localhost.test auth.localhost.test ldap.localhost.testmake buildnpx playwright install chromiumRun Playwright UI - npx playwright test --config=e2e/playwright.config.ts --ui --project=chromium
make test-large builds the production image and runs tests/integration with Testcontainers. The tests start LLDAP, Authelia, Traefik and PostgreSQL in throwaway containers and verify database configuration via AAD_DB_* variables for SQLite and PostgreSQL, including TLS modes and startup validation.
Prerequisites:
npm install on the host. The tests run on the host, not inside a container.make test-large builds it. npm run test:integration uses authelia-admin:latest from make build, or the image in AAD_TEST_IMAGE.AAD_DB_* variables暂无开放 Issues,或尚未同步最近议题。