Documentation
02Deployment

Deployment overview

The Cloudflare resources InsightFlare uses and the ways to deploy it.

Deploy the latest official InsightFlare build to your own Cloudflare account. No GitHub fork, Wrangler installation or manual resource configuration is needed.

InsightFlare Deploy

Bindings

The default wrangler.toml declares these resources:

BindingTypePurposeRequired
DBD1 databasePrimary store for sites, teams, users, visits, events, and rollups.Yes
SITE_SETTINGS_KVKV namespacePer-site tracking and blocking settings.Yes
INGEST_DODurable Object (IngestDurableObject)Buffers incoming events and flushes them to D1.Yes
REQUEST_ANALYTICSAnalytics Engine dataset (insightflare_request_events)Request observation and abnormal traffic.Optional
TRAFFIC_ANALYTICSAnalytics Engine dataset (insightflare_traffic_events)Sampled traffic facts.Optional
EVENT_ANALYTICSAnalytics Engine dataset (insightflare_event_facts)Sampled custom event facts.Optional
ARCHIVE_BUCKETR2 bucketOptional cold archive. See R2 archive.Optional

The Worker also has a cron trigger that runs every 30 minutes to run scheduled tasks.

Secrets

NamePurpose
MAIN_SECRETRoot secret from which session keys, API key hash keys, visitor salts, the collect token signing key, and encryption keys are derived.
BOOTSTRAP_ADMIN_PASSWORDPassword for the initial admin account.
DAILY_SALT_SECRETLegacy fallback for MAIN_SECRET, used only if MAIN_SECRET is not set.

Choose a method

After deploying, you can override Wrangler settings with environment variables, enable Analytics Engine, and keep your deployment updated.