-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
43 lines (35 loc) · 2.75 KB
/
.env.example
File metadata and controls
43 lines (35 loc) · 2.75 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
# CodeTrackr Environment Variables
# Copy this file to .env and fill in your values
# ── Server ────────────────────────────────────────────────────────────────────
PORT=8080
BASE_URL=http://localhost:8080
FRONTEND_URL=http://localhost:8080
ALLOW_NULL_ORIGIN=false
RUST_LOG=codetrackr=debug,tower_http=info
# ── Database ──────────────────────────────────────────────────────────────────
DATABASE_URL=postgresql://postgres:password@localhost:5432/codetrackr
# ── Redis ─────────────────────────────────────────────────────────────────────
REDIS_URL=redis://localhost:6379
# ── JWT ───────────────────────────────────────────────────────────────────────
# Generate with: openssl rand -hex 32
JWT_SECRET=change-me-to-a-secure-random-string-at-least-32-chars
# ── GitHub OAuth ──────────────────────────────────────────────────────────────
# Create at https://github.com/settings/developers
GITHUB_CLIENT_ID=your_github_client_id
GITHUB_CLIENT_SECRET=your_github_client_secret
# ── GitLab OAuth (optional) ───────────────────────────────────────────────────
GITLAB_CLIENT_ID=
GITLAB_CLIENT_SECRET=
# ── Stripe ────────────────────────────────────────────────────────────────────
# Create at https://dashboard.stripe.com/apikeys
STRIPE_PUBLISHABLE_KEY=pk_test_...
STRIPE_SECRET_KEY=sk_test_...
# Get from https://dashboard.stripe.com/webhooks after creating the endpoint
STRIPE_WEBHOOK_SECRET=whsec_...
STRIPE_PRICE_ID=price_...
STRIPE_PRICE_ID_YEARLY=price_...
# ── Plugin System ─────────────────────────────────────────────────────────────
# Maximum number of plugins that can run simultaneously per lifecycle hook call
# Default: 3 (conservative for small servers)
# Increase to 5-10 for servers with more resources
# MAX_PLUGIN_CONCURRENCY=3