Skip to main content
This page is a checklist of essential settings to verify when deploying Cloosphere to production.
  • Expand each item to see the exact setting values and cautions.
Admin panel settings (GUI) are saved as PersistentConfig in DB and auto-applied. This page covers items that can’t be changed via GUI — environment variables and external dependencies.

Required Environment Variables

In production, missing these disables some features or causes abnormal behavior.

Public URL

When CLOOSPHERE_PUBLIC_URL is unset:
  • Embed widget callback URLs are wrongly exposed as internal IP/host
  • Teams bot manifest validDomains computation errors
(The SR feature is controlled separately by CLOOCUS_PUBLIC_URL + SR_KEY.)Always specify as HTTPS public FQDN. Behind a proxy (Nginx/Cloudflare), enter the externally visible URL.

Database / Redis

REDIS_URL is required in multi-worker environments. Operating without Redis:
  • PersistentConfig stored only in per-worker memory → inter-worker setting inconsistency
  • Per-user agent selection state and other session data lost
  • Teams bot / embed widget user context lost
When Redis connection fails, Cloosphere fast-fails with 5-second timeout and auto-switches to in-memory fallback (single-worker mode). In multi-worker, monitor Redis availability via health endpoints.

Knowledge Graph (AGE)

KG fan-out extraction uses many concurrent connections, so pool exhaustion can fail sync.
On pool exhaustion, Cloosphere auto-performs 5 retries with exponential backoff (0.1s × 2^attempt). Seeing [age_service] pool initialized in logs indicates normal initialization. Repeated PoolError or connection pool exhausted means raise the pool size one tier.

SSO / OIDC Integration (optional)

To activate OAuth/OIDC SSO, set the following environment variables (Keycloak, Entra ID, Google all use the same interface).
Keycloak organization sync (since add35ab42): operates via client_credentials grant flow. When the above env vars are all set, the Keycloak sync option activates in Organization Management.
See General settings — Authentication for details.

Teams Bot (optional)

To operate a Microsoft Teams bot:
Teams bot requires Redis in multi-worker environments. Per-user agent selection state must be shared across workers.
See the Teams Bot Guide for detailed setup.

Multi-Worker Operations Checklist

Alembic migration conflicts are auto-resolved by lock in the latest version, but serializing container start order (e.g., wait for first worker’s healthcheck to pass before starting others) is safer.

Health Endpoints (Monitoring Integration)

Cloosphere provides health endpoints integrable with external monitoring (Prometheus, Datadog, Azure Monitor, etc.). Response example:
The admin panel’s System Diagnostics panel shows /health/full results in GUI. Recommend /health/db for CI/CD readiness probe and /health for liveness probe.

Operations Checklist (Summary)

Pre-deploy verification:
1

Verify public URL

Is CLOOSPHERE_PUBLIC_URL set to an external HTTPS FQDN?
2

DB / Redis

DATABASE_URL connects normally; REDIS_URL required for multi-worker
3

OIDC (optional)

For SSO, set OPENID_PROVIDER_URL + client credentials
4

Teams Bot (optional)

For Teams integration, register Azure Bot Service + upload manifest
5

AGE pool size

Adjust AGE_POOL_MAX per KG usage scale
6

Health monitoring

Add /health/db, /health/redis polling to external monitoring
7

Audit log activation

Verify the license includes the audit_log feature → Audit Log
8

Backup policy

PostgreSQL + file storage periodic backups, AGE graph backup cadence configured

General

GUI-managed authentication and feature toggles

Teams Bot

Microsoft Teams integration

Notification Settings

Email and webhook notification channels

Troubleshooting

Common issues and solutions in operations