Skip to content

Open-source agentic AI Search Execution Platform. Track AI visibility, find opportunities, and let agents turn signals into prioritized actions and drafted fixes across ChatGPT, Claude, Gemini, Google AI Overviews, Google AI Mode, Perplexity, Grok, and Microsoft Copilot.

docs(env): add CRON_SECRET to both .env.example files (#277)

P-Maheswari9fb33d7f2664
diff --git a/server/.env.example b/server/.env.example
index 8ba3cecbc..7ae473760 100644
--- a/server/.env.example
+++ b/server/.env.example
@@ -62,6 +62,17 @@ PLATFORM_PROVIDER=cloro
# AI Volume Multiplier (AI search adoption rate, e.g. 0.15 = 15%)
AI_VOLUME_MULTIPLIER=0.15
+# Cron / Internal-endpoint secret (cloud only — not needed for self-hosted)
+# Guards three internal server endpoints:
+# /api/internal/daily-tracking
+# /api/internal/content/:id/brief
+# /api/internal/trigger-tracking
+# The web app sends this as "Authorization: Bearer <value>"; the server
+# compares against its own copy. MUST be the same value on both sides.
+# Generate: openssl rand -hex 32
+# CRON_SECRET=
+
# Stripe (cloud only — not needed for self-hosted)
# STRIPE_SECRET_KEY=sk_test_...
# STRIPE_WEBHOOK_SECRET=whsec_...
+
diff --git a/web/.env.example b/web/.env.example
index 35de04e3e..8709e3c70 100644
--- a/web/.env.example
+++ b/web/.env.example
@@ -58,6 +58,19 @@ NEXT_PUBLIC_IS_CLOUD=false
# -----------------------------------------------------------------------------
NEXT_PUBLIC_API_URL=http://localhost:80
+# -----------------------------------------------------------------------------
+# Cron / Internal-endpoint secret (cloud only — not needed for self-hosted)
+# -----------------------------------------------------------------------------
+# Shared secret that authenticates calls from the web layer to the server's
+# internal endpoints. Used by:
+# - Vercel Cron → /api/cron/daily-tracking
+# - Stripe success route → post-checkout tracking trigger
+# - MCP layer → content-brief generation (throws if unset)
+# Web sends: Authorization: Bearer ${CRON_SECRET}
+# Server checks its own CRON_SECRET copy — both values MUST match.
+# Generate: openssl rand -hex 32
+# CRON_SECRET=
+
# -----------------------------------------------------------------------------
# Stripe (cloud only — not needed for self-hosted)
# -----------------------------------------------------------------------------