OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.
NODE_ENV="production"
SELF_HOSTED="true"
AUTOMATIC_MIGRATIONS="true"
BATCH_SIZE="5000"
BATCH_INTERVAL="10000"
ALLOW_REGISTRATION="false"
ALLOW_INVITATION="true"
# Will be replaced with the setup script
REDIS_URL="$REDIS_URL"
CLICKHOUSE_URL="$CLICKHOUSE_URL"
DATABASE_URL="$DATABASE_URL"
DATABASE_URL_DIRECT="$DATABASE_URL_DIRECT"
DASHBOARD_URL="$DASHBOARD_URL"
API_URL="$API_URL"
COOKIE_SECRET="$COOKIE_SECRET"
AUTH_SECRET="$AUTH_SECRET"
# HTTP Basic credentials for operator-only surfaces (the queue dashboard at
# /bullboard). Leave empty to guard it with a dashboard session alone.
ADMIN_USERNAME="$ADMIN_USERNAME"
ADMIN_PASSWORD="$ADMIN_PASSWORD"
EMAIL_SENDER="$EMAIL_SENDER"
RESEND_API_KEY="$RESEND_API_KEY"
ENCRYPTION_KEY="$ENCRYPTION_KEY"
# Optional: Social login (Google / GitHub)
# Docs: https://openpanel.dev/docs/self-hosting/social-login
# The redirect URIs must match the "Authorized redirect URI" configured at the
# provider exactly. Default layout: <your-domain>/api/oauth/<provider>/callback
# GOOGLE_CLIENT_ID=xxxx.apps.googleusercontent.com
# GOOGLE_CLIENT_SECRET=GOCSPX-xxxx
# GOOGLE_REDIRECT_URI=https://your-domain.com/api/oauth/google/callback
# GITHUB_CLIENT_ID=Iv1.xxxx
# GITHUB_CLIENT_SECRET=xxxx
# GITHUB_REDIRECT_URI=https://your-domain.com/api/oauth/github/callback
# Optional: Google Search Console integration
# Docs: https://openpanel.dev/docs/self-hosting/google-search-console
# Reuses GOOGLE_CLIENT_ID / GOOGLE_CLIENT_SECRET above, plus its own redirect
# URI. Requires ENCRYPTION_KEY (generated by the setup script).
# GSC_GOOGLE_REDIRECT_URI=https://your-domain.com/api/gsc/callback
# Events go through Kafka. The bundled op-rp service (Redpanda) listens here;
# point this at your own brokers to use an external Kafka instead.
KAFKA_BROKERS="op-rp:9092"
# Partition count for the `events` topic, applied once by redpanda/bootstrap.yaml
# on first boot. Set once at install — see the footgun warning in
# redpanda/bootstrap.template.yaml before changing it on a running cluster.
KAFKA_EVENTS_TOPIC_PARTITIONS="$KAFKA_EVENTS_TOPIC_PARTITIONS"