-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.env.example
More file actions
70 lines (53 loc) · 3.06 KB
/
Copy path.env.example
File metadata and controls
70 lines (53 loc) · 3.06 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
# == Application URL ==========================================================
# Production URL — used in scripts and server-side checks
PROD_URL="https://starmapper.bruniaux.com"
# App URL for metadata, OG tags, sitemap, Nominatim User-Agent (client-side)
NEXT_PUBLIC_APP_URL="https://starmapper.bruniaux.com"
# == Database =================================================================
DATABASE_URL="postgresql://user:password@host/dbname?sslmode=require"
# Local Docker Postgres — used by scripts with the --local flag
DATABASE_URL_LOCAL="postgresql://starmapper:starmapper@localhost:5433/starmapper"
# == Database driver ==========================================================
# "neon" (default) | "standard" (Docker/TCP)
# DATABASE_DRIVER=standard
# == GitHub ===================================================================
GITHUB_TOKEN="ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
# == Geocoding ================================================================
# Jawg dedicated token — primary geocoding via starmapper.jawg.io
JAWG_TOKEN_HEADER="your_jawg_token_header"
# Secondary account, used automatically when the primary hits a quota or auth error
JAWG_TOKEN_HEADER_2=""
# Jawg Places API — /explore autocomplete + reverse geocoding
JAWGMAP_ACCESS_TOKEN="your_jawg_token"
# Secondary account, used automatically when the primary hits a quota or auth error
JAWGMAP_ACCESS_TOKEN_2=""
# Geoapify — geocoding fallback #1
GEOAPIFY_APIKEY="your_geoapify_key"
# == Client-side ==============================================================
NEXT_PUBLIC_JAWGMAP_ACCESS_TOKEN="your_jawg_token"
# CSV export feature flag ("true" to enable)
NEXT_PUBLIC_CSV_EXPORT="false"
# == Rate limiting (Redis) ====================================================
UPSTASH_REDIS_REST_URL="https://your-db.upstash.io"
UPSTASH_REDIS_REST_TOKEN="your_upstash_token"
# REDIS_URL="redis://localhost:6379"
# == Security =================================================================
# HMAC anti-scraping — generate: openssl rand -hex 32
SM_TOKEN_SECRET="your_sm_token_secret"
# HMAC key for signing PAT→login cache entries in Upstash — generate: openssl rand -hex 32
CACHE_SIGN_SECRET="your_cache_sign_secret"
# Vercel Cron auth — generate: openssl rand -hex 32
CRON_SECRET="your_cron_secret"
# Admin endpoints — generate: openssl rand -hex 32
ADMIN_SECRET="your_admin_secret"
# == DB storage limit =========================================================
# Free tier: 512 | Launch: 10240 | Scale: 102400
DB_STORAGE_LIMIT_MB=512
# == Feature flags ============================================================
# Organic Score — "% de faux possible" heuristic (fork/star, watcher/star, zero-followers)
# Set to "true" to enable the Organic Score pill in the map TopPanel.
NEXT_PUBLIC_ORGANIC_SCORE_ENABLED="false"
# Serves GET /api/stats/[owner]/[repo] from the four repo_*_mv instead of the live joins.
# Requires views 10 to 13 of prisma/sql/views.sql to be applied, and the four views to have
# been refreshed at least once. Off means the pre-MV behaviour, byte for byte.
REPO_STATS_MV_ENABLED="false"