-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.env.example
More file actions
51 lines (43 loc) · 1.47 KB
/
Copy path.env.example
File metadata and controls
51 lines (43 loc) · 1.47 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
GITHUB_TOKEN=your_github_personal_access_token_here
PORT=3102
APP_ENV=production
WARMUP_USERNAME=pphatdev
# Per-instance secret used to salt client IPs before hashing for the visitor
# dedup counter. Generate with `openssl rand -hex 32`. Must be 16+ chars.
# Missing in dev triggers a boot warning; missing in prod means IP hashes
# use a well-known dev fallback (insecure).
SERVER_SALT=
# Database provider selection
# cloudflare: use Cloudflare D1 over HTTP
# sqlite: use local SQLite file
DATABASE_PROVIDER=sqlite
# Local SQLite file path (used when DATABASE_PROVIDER=sqlite)
DATABASE_URL=./data/stats.db
# Cloudflare / Wrangler / D1
# Used by drizzle.config.ts when running Drizzle commands against D1.
# Required when DATABASE_PROVIDER=cloudflare.
# Not required for local SQLite.
CLOUDFLARE_ACCOUNT_ID=
CLOUDFLARE_D1_DATABASE_ID=
CLOUDFLARE_D1_TOKEN=
# Tunnel
CLOUDFLARED_TUNNEL_NAME=github-stats
CLOUDFLARED_TUNNEL_TOKEN=
# Local Docker Compose Redis (default)
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_USERNAME=
REDIS_PASSWORD=
REDIS_TLS=false
REDIS_DB=0
# Example: Redis Cloud (optional)
# REDIS_HOST=redis-10434.crce262.us-east-1-1.ec2.cloud.redislabs.com
# REDIS_PORT=10434
# REDIS_USERNAME=default
# REDIS_PASSWORD=your_password_here
# REDIS_TLS=true
# ============================================================================
# Debugging
# ============================================================================
# Enable debug mode for detailed connection logs
# DEBUG_REDIS=true