Configuration
Deploying the IntelliAsk Admin Panel and the complete environment reference — MongoDB, authentication, SMTP, IntelliCollab alerts, the built-in MCP endpoint, branding, and diagnostics.
The Admin Panel is configured entirely through environment variables. The names below are the names the container reads.
Enabling it in the stack
The Admin Panel ships with the IntelliAsk stack as an optional, opt-in module
(config/admin-panel.compose.yml). It is off by default and only starts when
ADMIN_PANEL_ENABLED=true in config/.env. Turn it on and off with the
intelliask binary:
./intelliask provision also asks whether to enable it (default No), and
./intelliask secrets fills ADMIN_PANEL_JWT_SECRET along with the other
secrets. On an older config/.env without the ADMIN_PANEL_* keys the panel
stays off; module enable adds admin-panel.compose.yml to COMPOSE_FILE for you.
Several variable names the panel reads — MONGO_URI, JWT_SECRET, DATABASE,
LOG_LEVEL — are also used by the intelliask container with different
meanings, so the stack keeps every panel value under an ADMIN_PANEL_ key in
config/.env and maps it in admin-panel.compose.yml:
config/.env key | Container variable | Stack default |
|---|---|---|
ADMIN_PANEL_ENABLED | (module switch) | false |
ADMIN_PANEL_IMAGE | (image) | intelliask-admin-panel:1.0.1 |
ADMIN_PANEL_PORT | (host port → 8000) | 8090 |
ADMIN_PANEL_BIND | (host interface) | 127.0.0.1: |
ADMIN_PANEL_PROXY_ENABLED | (serve through the proxy) | false |
ADMIN_PANEL_PUBLIC_HOST | (proxy hostname) | (empty) |
ADMIN_PANEL_PUBLIC_PATH | ROOT_PATH | (empty — off) |
ADMIN_PANEL_CPUS / ADMIN_PANEL_MEMORY | (limits) | 0.5 / 512m |
ADMIN_PANEL_MONGO_URI | MONGO_URI | stack MongoDB, root user |
ADMIN_PANEL_DATABASE | DATABASE | IntelliAsk |
ADMIN_PANEL_DASHBOARD_DB | DASHBOARD_DB | dashboard |
ADMIN_PANEL_INTELLICOLLAB_DB | INTELLICOLLAB_DB | intellicollab |
ADMIN_PANEL_JWT_SECRET | JWT_SECRET | generated |
ADMIN_PANEL_JWT_EXPIRE_HOURS | JWT_EXPIRE_HOURS | 24 |
ADMIN_PANEL_PW_MIN_LENGTH | PW_MIN_LENGTH | 12 |
ADMIN_PANEL_APP_NAME | APP_NAME | IntelliAsk Admin |
ADMIN_PANEL_BASE_URL | BASE_URL | http://localhost:8090 (https://<ADMIN_PANEL_PUBLIC_HOST> or ${PUBLIC_URL}/admin when proxied) |
ADMIN_PANEL_INTELLIASK_URL | INTELLIASK_URL | (empty — derived from DOMAIN_CLIENT, see below) |
ADMIN_PANEL_LOG_LEVEL | LOG_LEVEL | INFO |
ADMIN_PANEL_SMTP_HOST … ADMIN_PANEL_SMTP_TLS | SMTP_HOST … SMTP_TLS | email off |
ADMIN_PANEL_MCP_ENABLED | MCP_ENABLED | false |
ADMIN_PANEL_INTELLIASK_URL drives the panel's Open IntelliAsk link. Leave it
blank and the intelliask binary fills it each time it runs Docker Compose, from
DOMAIN_CLIENT (which defaults to ${PUBLIC_URL}, i.e.
${PUBLIC_SCHEME}://${PUBLIC_HOST}) — for example
https://intelliask.example.com. It only uses an http(s) URL on a DNS name or a
non-loopback IP. It never uses localhost or a Docker service name such as
intelliask, because the link opens in the operator's browser. When no public name
is known the link is hidden. Set the key to override it, for example when
IntelliAsk sits behind your own load balancer. ./intelliask doctor shows the value
it will use.
Backups are written to ${STORAGE_ROOT}/admin-panel-backups on the host
(mounted at /backups). Variables not listed above (restricted-publish
alerts, diagnostics) keep their built-in defaults; add them to the compose file's
environment: block if you need them.
Reaching the panel
By default the panel binds to 127.0.0.1:8090 on the host only. Open it over an
SSH tunnel — ssh -L 8090:127.0.0.1:8090 <host>, then browse to
http://localhost:8090 — or over a VPN, or publish it through the stack's reverse
proxy on its own DNS name or under a path of the IntelliAsk site (below). Never
expose the raw port directly to the internet.
Serving it on its own DNS name
With the reverse proxy on, the panel can be served on a dedicated hostname with the proxy's TLS — the same way as the metrics exporter. It is opt-in:
--admin-host sets ADMIN_PANEL_PROXY_ENABLED=true and ADMIN_PANEL_PUBLIC_HOST,
keeps ADMIN_PANEL_BIND=127.0.0.1: (the raw port stays off the network), switches
ADMIN_PANEL_BASE_URL to ${PUBLIC_SCHEME}://<host> so report links point at it,
and restarts the proxy. Point that DNS name at the server. The hostname must differ
from PUBLIC_HOST and the other proxy sites, and the site only exists while the
admin-panel module is enabled. It uses the same scheme as IntelliAsk: HTTPS in the
TLS modes, plain HTTP on port 80 when PROXY_TLS_MODE=off.
./intelliask provision offers the same choice when both the proxy and the panel
are enabled. The upstream can be overridden with ADMIN_PANEL_PROXY_UPSTREAM
(default admin-panel:8000).
A public hostname makes the sign-in page reachable
Once proxied, anyone who can resolve and reach the hostname sees the panel's
sign-in page. Change the seeded admin password first, use strong passwords, and
prefer an internal DNS name (or a firewall / VPN in front of port 443) when the
panel does not need to be reachable from the internet.
Serving it under a path
Alternatively, serve the panel under a path of the IntelliAsk site — e.g.
https://intelliask.example.com/admin/ — with no extra DNS name or certificate.
This is also opt-in:
--admin-path sets ADMIN_PANEL_PUBLIC_PATH, which the panel receives as
ROOT_PATH, recreates the panel container, and adds a route to the IntelliAsk
site in Caddy (/admin → /admin/, and everything under /admin/ to the panel;
every other path still reaches IntelliAsk). ADMIN_PANEL_BASE_URL becomes
${PUBLIC_URL}/admin unless you set it by hand. It works in every TLS mode,
including off, and can be combined with --admin-host. The path must not
shadow an IntelliAsk route (/api, /c, /login, /oauth, /share, /assets,
/agents, /intellicollab, …). ./intelliask provision offers it when you
decline a separate hostname, or when you enter the IntelliAsk hostname itself as
the panel's DNS name (answer n to type a different name instead).
Same origin as IntelliAsk
Under a path, the panel and IntelliAsk share one browser origin, so script
running on the IntelliAsk site could read the panel's sign-in token from
browser storage. A separate hostname (--admin-host) keeps them isolated and is
the better choice for internet-facing installs.
Outside the stack
Behind your own proxy, set ROOT_PATH on the container (e.g. ROOT_PATH=/admin)
and route /admin/* to it without stripping the prefix — the panel removes
the prefix itself, serves its assets and API under it, and redirects / and
/admin to /admin/. Unprefixed paths keep working, so the container
healthcheck (/health) and direct loopback access are unaffected.
MongoDB
| Name | Purpose | Default | Required |
|---|---|---|---|
MONGO_URI | MongoDB connection string | mongodb://localhost:27017 | Yes |
MONGO_CONNECT_TIMEOUT_MS | Connect and server-selection timeout (ms) | 5000 | No |
DATABASE | The IntelliAsk database to analyse and administer | IntelliAsk | Yes |
DASHBOARD_DB | The panel's own database (accounts, API keys, audit log, schedules) | dashboard | No |
INTELLICOLLAB_DB | IntelliCollab control-plane database (must match IntelliCollab's MONGO_DB_NAME) | intellicollab | No |
Single host, and the database name
The panel connects with directConnection=true, so MONGO_URI must point at
one MongoDB host (the primary), not a list of replica-set members. Set
DATABASE to IntelliAsk explicitly. Database names are case-sensitive.
The example uses the stack's MongoDB root user. A least-privilege user needs
readWrite on the IntelliAsk, dashboard and IntelliCollab databases, plus
clusterMonitor for the server-metrics views. Backing up or restoring any other
database needs readWrite on that database too.
Authentication
| Name | Purpose | Default | Required |
|---|---|---|---|
JWT_SECRET | Secret used to sign session tokens (HS256) | change-me-in-production-please | Yes |
JWT_EXPIRE_HOURS | Session lifetime in hours | 24 | No |
PW_MIN_LENGTH | Minimum password length for panel accounts | 8 | No |
API_KEY_PREFIX | Prefix for generated API keys | mdb_ | No |
Changing JWT_SECRET signs every user out. API keys are stored as SHA-256 hashes
and are unaffected.
Branding and URLs
| Name | Purpose | Default | Required |
|---|---|---|---|
APP_NAME | Product name shown in the UI, emails, and MCP server info | MongoDB Dashboard | No |
FAVICON_URL | URL of a custom favicon for the UI | (built-in) | No |
BASE_URL | Public URL of the panel, used in generated links and the Grafana catalog | http://localhost:8000 | Recommended |
INTELLIASK_URL | Browser URL of IntelliAsk, e.g. https://intelliask.example.com. Adds an Open IntelliAsk link to the header and the command palette. Must start with http:// or https:// | (empty — link hidden) | No |
ROOT_PATH | URL prefix when a proxy serves the panel under a path, e.g. /admin (letters, digits, . _ ~ - segments) | (empty — served at /) | No |
Email (SMTP)
SMTP is used for scheduled reports and restricted-publish alerts. When SMTP_HOST is
empty, email delivery is disabled.
| Name | Purpose | Default | Required |
|---|---|---|---|
SMTP_HOST | SMTP server hostname | (empty — email disabled) | For email |
SMTP_PORT | SMTP port | 587 | No |
SMTP_USER | SMTP username | (empty) | No |
SMTP_PASS | SMTP password | (empty) | No |
SMTP_FROM | Sender address | noreply@example.com | For email |
SMTP_TLS | Use STARTTLS (true / false) | true | No |
IntelliCollab restricted-publish alerts
A background monitor watches for IntelliCollab apps published on restricted endpoints and emails an administrator about each newly exposed app.
| Name | Purpose | Default | Required |
|---|---|---|---|
RESTRICTED_PUBLISH_NOTIFY_EMAIL | Recipient for alerts (falls back to SMTP_FROM) | (empty) | No |
RESTRICTED_PUBLISH_MONITOR_INTERVAL | Scan interval in seconds | 60 | No |
RESTRICTED_PUBLISH_NOTIFY_SUPPRESS_EXISTING | On the first scan, record already-published apps silently instead of alerting on them | false | No |
Built-in MCP endpoint
| Name | Purpose | Default | Required |
|---|---|---|---|
MCP_ENABLED | Mount a Streamable HTTP MCP server at /mcp, exposing the panel's analytics and admin actions as role-gated tools | false | No |
Read the security notes first
The /mcp endpoint identifies callers by the X-User-Email header only. Read
Security → Built-in MCP endpoint
before enabling it.
Logging and diagnostics
| Name | Purpose | Default | Required |
|---|---|---|---|
LOG_LEVEL | Python log level | INFO | No |
REQUEST_METRICS | Log per-path request counts, in-flight requests, and process memory (on / off) | on | No |
REQUEST_METRICS_INTERVAL | Summary interval in seconds (only logged when there was traffic) | 30 | No |
REQUEST_METRICS_STACK_CPU | Dump all thread stacks when a thread exceeds this CPU % over an interval | 50 | No |
Last updated on