-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
40 lines (31 loc) · 1.18 KB
/
Copy path.env.example
File metadata and controls
40 lines (31 loc) · 1.18 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
# Public app port exposed by nginx in both dev and prod
APP_PORT=3000
# Optional direct database ports for local development only
POSTGRES_PORT=5432
REDIS_PORT=6379
# Internal upstreams used by nginx
API_ADDRESS=api:8000
DASHBOARD_ADDRESS=dashboard:3000
# Infrastructure
POSTGRES_PASSWORD=change-me
REDIS_PASSWORD=change-me
DATABASE_URL=postgresql://togglebit:change-me@postgres:5432/togglebit
REDIS_URL=redis://:change-me@redis:6379
# API key hashing (generate with: openssl rand -hex 32)
HMAC_SECRET=change-me
# Clerk
CLERK_SECRET_KEY=sk_test_...
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_...
# Same value as NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY.
# The API builds JWKS URL: https://<decoded-host>/.well-known/jwks.json
CLERK_PUBLISHABLE_KEY=pk_test_...
# Optional explicit JWKS URL (overrides CLERK_PUBLISHABLE_KEY derivation)
# CLERK_JWKS_URL=https://your-instance.clerk.accounts.dev/.well-known/jwks.json
# Reverse-proxied same-origin app/API URLs
DASHBOARD_URL=http://localhost:3000
INTERNAL_API_URL=http://api:8000
NEXT_PUBLIC_API_URL=/api
NEXT_PUBLIC_TOGGLEBIT_API_URL=/api
NEXT_PUBLIC_TOGGLEBIT_ENV=dev
# Optional dashboard dogfooding
NEXT_PUBLIC_TOGGLEBIT_API_KEY=tb_dev_your_api_key_here