Skip to main content

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 module enable admin-panel    # generates ADMIN_PANEL_JWT_SECRET if blank, then starts it
./intelliask module disable admin-panel   # stops it and sets ADMIN_PANEL_ENABLED=false
./intelliask module list                  # shows its current state

./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 keyContainer variableStack 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_PATHROOT_PATH(empty — off)
ADMIN_PANEL_CPUS / ADMIN_PANEL_MEMORY(limits)0.5 / 512m
ADMIN_PANEL_MONGO_URIMONGO_URIstack MongoDB, root user
ADMIN_PANEL_DATABASEDATABASEIntelliAsk
ADMIN_PANEL_DASHBOARD_DBDASHBOARD_DBdashboard
ADMIN_PANEL_INTELLICOLLAB_DBINTELLICOLLAB_DBintellicollab
ADMIN_PANEL_JWT_SECRETJWT_SECRETgenerated
ADMIN_PANEL_JWT_EXPIRE_HOURSJWT_EXPIRE_HOURS24
ADMIN_PANEL_PW_MIN_LENGTHPW_MIN_LENGTH12
ADMIN_PANEL_APP_NAMEAPP_NAMEIntelliAsk Admin
ADMIN_PANEL_BASE_URLBASE_URLhttp://localhost:8090 (https://<ADMIN_PANEL_PUBLIC_HOST> or ${PUBLIC_URL}/admin when proxied)
ADMIN_PANEL_INTELLIASK_URLINTELLIASK_URL(empty — derived from DOMAIN_CLIENT, see below)
ADMIN_PANEL_LOG_LEVELLOG_LEVELINFO
ADMIN_PANEL_SMTP_HOST … ADMIN_PANEL_SMTP_TLSSMTP_HOST … SMTP_TLSemail off
ADMIN_PANEL_MCP_ENABLEDMCP_ENABLEDfalse

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:

./intelliask module enable proxy --admin-host admin.example.com   # add the site
./intelliask module enable proxy --no-admin                       # back to loopback only

--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:

./intelliask module enable proxy --admin-path /admin   # add the route
./intelliask module enable proxy --no-admin-path       # remove it

--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

NamePurposeDefaultRequired
MONGO_URIMongoDB connection stringmongodb://localhost:27017Yes
MONGO_CONNECT_TIMEOUT_MSConnect and server-selection timeout (ms)5000No
DATABASEThe IntelliAsk database to analyse and administerIntelliAskYes
DASHBOARD_DBThe panel's own database (accounts, API keys, audit log, schedules)dashboardNo
INTELLICOLLAB_DBIntelliCollab control-plane database (must match IntelliCollab's MONGO_DB_NAME)intellicollabNo

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

NamePurposeDefaultRequired
JWT_SECRETSecret used to sign session tokens (HS256)change-me-in-production-pleaseYes
JWT_EXPIRE_HOURSSession lifetime in hours24No
PW_MIN_LENGTHMinimum password length for panel accounts8No
API_KEY_PREFIXPrefix for generated API keysmdb_No

Changing JWT_SECRET signs every user out. API keys are stored as SHA-256 hashes and are unaffected.

Branding and URLs

NamePurposeDefaultRequired
APP_NAMEProduct name shown in the UI, emails, and MCP server infoMongoDB DashboardNo
FAVICON_URLURL of a custom favicon for the UI(built-in)No
BASE_URLPublic URL of the panel, used in generated links and the Grafana cataloghttp://localhost:8000Recommended
INTELLIASK_URLBrowser 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_PATHURL 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.

NamePurposeDefaultRequired
SMTP_HOSTSMTP server hostname(empty — email disabled)For email
SMTP_PORTSMTP port587No
SMTP_USERSMTP username(empty)No
SMTP_PASSSMTP password(empty)No
SMTP_FROMSender addressnoreply@example.comFor email
SMTP_TLSUse STARTTLS (true / false)trueNo

IntelliCollab restricted-publish alerts

A background monitor watches for IntelliCollab apps published on restricted endpoints and emails an administrator about each newly exposed app.

NamePurposeDefaultRequired
RESTRICTED_PUBLISH_NOTIFY_EMAILRecipient for alerts (falls back to SMTP_FROM)(empty)No
RESTRICTED_PUBLISH_MONITOR_INTERVALScan interval in seconds60No
RESTRICTED_PUBLISH_NOTIFY_SUPPRESS_EXISTINGOn the first scan, record already-published apps silently instead of alerting on themfalseNo

Built-in MCP endpoint

NamePurposeDefaultRequired
MCP_ENABLEDMount a Streamable HTTP MCP server at /mcp, exposing the panel's analytics and admin actions as role-gated toolsfalseNo

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

NamePurposeDefaultRequired
LOG_LEVELPython log levelINFONo
REQUEST_METRICSLog per-path request counts, in-flight requests, and process memory (on / off)onNo
REQUEST_METRICS_INTERVALSummary interval in seconds (only logged when there was traffic)30No
REQUEST_METRICS_STACK_CPUDump all thread stacks when a thread exceeds this CPU % over an interval50No

Last updated on