-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
80 lines (72 loc) · 3.02 KB
/
Copy path.env.example
File metadata and controls
80 lines (72 loc) · 3.02 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
80
# ===========================================
# Hypercerts Scaffold - Environment Config
# ===========================================
#
# ⚠️ IMPORTANT: This scaffold uses a packed version of @hypercerts-org/lexicon
# See DEVELOPMENT.md for details about the lexicon version, breaking changes, and how to update.
#
# For detailed setup instructions, see README.md
#
# ===========================================
# -----------------------------
# Application Base URL
# -----------------------------
#
# LOCAL DEVELOPMENT:
# MUST use 127.0.0.1 (not localhost) for loopback oauth to work
# Include the port number (default: 3000)
# Access your app at: http://127.0.0.1:3000
#
# VERCEL PRODUCTION/PREVIEW:
# Leave UNSET - automatically detects from VERCEL_URL
# or set explicitly for production urls eg: https://hypercerts.org
#
# CUSTOM DEPLOYMENT:
# Set to your public HTTPS URL
# Example: NEXT_PUBLIC_BASE_URL=https://hypercerts.yourdomain.com
NEXT_PUBLIC_BASE_URL=http://127.0.0.1:3000
# -----------------------------
# ATProto Authentication
# -----------------------------
# Private JSON Web Key (JWK) for OAuth authentication
# Generate using the script @scripts/generate-jwk.mjs
# IMPORTANT: Keep this secret! Never commit the actual private key to version control.
ATPROTO_JWK_PRIVATE='{"keys":[{"kty":"EC","x":"...","y":"...","crv":"P-256","d":"...","kid":"...","alg":"ES256"}]}'
# -----------------------------
# Redis Configuration
# -----------------------------
# Redis server for session and state storage
# For local development with Docker:
# docker run -d -p 6379:6379 redis:alpine
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
# REDIS_USERNAME=default
# Optional: Redis username (defaults to 'default' when REDIS_PASSWORD is set).
# Most managed Redis providers (RedisLabs, Upstash, Railway) require this alongside REDIS_PASSWORD.
#
# For cloud Redis (RedisLabs, Upstash, Railway, etc.):
# REDIS_HOST=your-redis-host.cloud.redislabs.com
# REDIS_PORT=19069
# REDIS_PASSWORD=your_redis_password_here
# REDIS_USERNAME=your_redis_username_here
# -----------------------------
# Hypercerts Network
# -----------------------------
# Personal Data Server (PDS) - Handles user data and identity
# Recommended staging ePDS for scaffold development.
# For bleeding-edge testing, use https://epds1.test.certified.app.
NEXT_PUBLIC_PDS_URL=https://dev.certified.app
# -----------------------------
# ePDS (Certified PDS) OAuth — Optional
# -----------------------------
# Only required if you want to support ePDS login (login via certified.app PDS).
# Leave unset to disable ePDS login.
# Base URL of the ePDS instance (e.g. a certified.app ePDS)
# Example: NEXT_PUBLIC_EPDS_URL=https://epds1.test.certified.app
# NEXT_PUBLIC_EPDS_URL=
# ePDS handle creation mode (only used when NEXT_PUBLIC_EPDS_URL is set)
# Valid values: random, picker, picker-with-random (default)
# NEXT_PUBLIC_EPDS_HANDLE_MODE=picker-with-random
# Session cookies use an opaque random sid and Redis mapping.
# No additional cookie-signing secret is required for this scaffold.