-
Notifications
You must be signed in to change notification settings - Fork 223
Expand file tree
/
Copy path.env.example
More file actions
79 lines (65 loc) · 3.61 KB
/
Copy path.env.example
File metadata and controls
79 lines (65 loc) · 3.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Copy to .env.local and fill in values. See README for provider setup.
# --- Supabase (optional: response caching is off if these are empty) ---
SUPABASE_URL=
SUPABASE_PUBLISHABLE_KEY=
# --- GitHub (optional: unauthenticated requests have lower API rate limits) ---
GITHUB_TOKEN=
# --- Quick LLM (GET prompt / reverse-prompt API) ---
# Pick the provider in one line. Keys for other providers can stay in the file; only the selected one is used.
# GITREVERSE_QUICK_LLM=auto
# auto — first key wins: Grok → OpenRouter → Azure → Google (same as leaving this unset)
# grok | openrouter | azure | google — require that provider’s API key only
# XAI_API_KEY=
# XAI_MODEL=grok-3 # or e.g. grok-4.20-0309-non-reasoning
OPENROUTER_API_KEY=
# OPENROUTER_MODEL=google/gemini-2.5-pro
# Azure OpenAI / Foundry OpenAI-compatible endpoint, e.g. https://your-resource.services.ai.azure.com/openai/v1
AZURE_OPENAI_API_KEY=
AZURE_OPENAI_BASE_URL=
# AZURE_OPENAI_MODEL=gpt-5.4
# AZURE_OPENAI_REASONING_EFFORT=medium
# Title generation defaults to gpt-5.4-mini with reasoning disabled.
# AZURE_OPENAI_TITLE_MODEL=gpt-5.4-mini
# AZURE_OPENAI_TITLE_REASONING_EFFORT=none
# Embeddings default to text-embedding-3-small at 512 dimensions.
# AZURE_OPENAI_EMBEDDING_MODEL=text-embedding-3-small
# AZURE_OPENAI_EMBEDDING_DIMENSIONS=512
# Optional explicit deployment names when Azure deployments differ from model IDs:
# AZURE_OPENAI_TITLE_DEPLOYMENT=
# AZURE_OPENAI_EMBEDDING_DEPLOYMENT=
# AZURE_OPENAI_DEPLOYMENT_NAME_MAP=gpt-5.4=my-quick-deployment,text-embedding-3-small=my-embed-deployment
# Optional OpenAI fallback for embeddings only, used when Azure embedding deployment is unavailable.
# OPENAI_API_KEY=
# Admin-only maintenance routes (e.g. embedding backfill)
# ADMIN_SECRET=
# GOOGLE_GENERATIVE_AI_API_KEY=
# GOOGLE_AI_STUDIO_MODEL=gemini-2.5-pro
# Optional OpenRouter attribution headers (recommended for rankings)
# OPENROUTER_HTTP_REFERER=https://yoursite.example
# OPENROUTER_APP_TITLE=gitreverse
# REQUIRED in production — generate with: openssl rand -hex 32 (or PowerShell random hex)
# Without this, the app will refuse to start in production.
VIEWS_IP_SALT=
# --- Website reverse (hostname hack: pinterest.localhost or www.pinterest.gitreverse.com) ---
# FIRECRAWL_API_KEY=fc-...
# context.dev fallback when Firecrawl is blocked (get key at https://context.dev)
# CONTEXT_DEV_API_KEY=
# --- Custom reverse (optional) ---
# Backend base URL for Custom reverse (local or your own deployment).
# CUSTOM_REVERSE_SERVICE_URL=http://localhost:3001
# Force billing/credit checks in development (overrides localhost bypass):
# GITREVERSE_FORCE_BILLING_CHECKS=true
# --- Stripe checkout (optional: paid upsell from deep/manual gates) ---
# Server-side Checkout Session — success URL is set in code (?session_id={CHECKOUT_SESSION_ID}).
# /api/cancel-subscription also uses this key: restricted keys (rk_...) need Customers (read) + Subscriptions (write).
# STRIPE_SECRET_KEY=sk_live_... # or sk_test_... for test mode
# Current single paid plan ($9/mo, 5 deep + 5 manual):
# STRIPE_PRICE_STARTER_ID=price_1TfvMRIBG5KwEK8aVwcI83zp
# Previous prices kept here for migration/reference:
# STRIPE_PRICE_LEGACY_UNLIMITED_ID=price_1TQj8FIBG5KwEK8atVJ49Oq9
# STRIPE_PRICE_PRO_ID=price_1TfvMRIBG5KwEK8aYeCaGRML
# STRIPE_PRICE_UNLIMITED_ID=price_1TfvMRIBG5KwEK8a5aETT5X8
# Pay-per-use credits ($1/reverse, one-time Checkout):
# STRIPE_PRICE_CREDIT_ID=price_1Tq9A8IBG5KwEK8aYIUW1fVp
# Fallback if /api/create-checkout fails (optional):
# NEXT_PUBLIC_STRIPE_PAYMENT_LINK=https://buy.stripe.com/...