-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy path.env.example
More file actions
91 lines (67 loc) · 3.07 KB
/
.env.example
File metadata and controls
91 lines (67 loc) · 3.07 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
81
82
83
84
85
86
87
88
89
90
91
# Gram Environment Configuration Template
# Copy this file to .env and fill in the values for your environment
# See AGENTS.md for detailed setup instructions
# ============================================================================
# REQUIRED: Application & Environment
# ============================================================================
# Node.js environment (development, staging, production)
NODE_ENV=development
# Application origin URL (frontend access URL)
ORIGIN=http://localhost:4726
# ============================================================================
# REQUIRED: Authentication & Security
# ============================================================================
# Secret key for signing JWT authentication tokens
# Generate with: openssl rand -base64 32
AUTH_SECRET=your-secret-key-here-change-in-production
# ============================================================================
# REQUIRED: Database Configuration
# ============================================================================
# PostgreSQL host
POSTGRES_HOST=localhost
# PostgreSQL port
POSTGRES_PORT=5432
# PostgreSQL user
POSTGRES_USER=gram
# PostgreSQL password
POSTGRES_PASSWORD=somethingsecret
# PostgreSQL database name
POSTGRES_DATABASE=gram
# Set to any value to disable SSL verification (for local development only)
# Omit or leave empty for SSL enabled (production)
POSTGRES_DISABLE_SSL=true
# ============================================================================
# OPTIONAL: Email Notifications (Magic Link Authentication)
# ============================================================================
# Email server hostname
EMAIL_HOST=
# Email server port
EMAIL_PORT=
# Email account username
EMAIL_USER=
# Email account password
EMAIL_PASSWORD=
# ============================================================================
# OPTIONAL: Error Tracking (Sentry)
# ============================================================================
# Sentry DSN for error tracking and performance monitoring
# Example: https://xxxxx@xxxxx.ingest.sentry.io/xxxxx
SENTRY_DSN=
# ============================================================================
# OPTIONAL: Frontend Environment
# ============================================================================
# Frontend port (used during development with react-scripts)
# Set in npm script: PORT=4726 npm start
PORT=4726
# Frontend version (populated from package.json during build)
REACT_APP_VERSION=
# ============================================================================
# NOTES
# ============================================================================
# - For local development, use provided values or docker-compose defaults
# - For production, replace all secrets with secure values
# - Database credentials should use strong passwords
# - AUTH_SECRET must be a random string (use: openssl rand -base64 32)
# - Email configuration only needed if using email-based authentication
# - Sentry is optional but recommended for production deployments
# - Ensure .env is in .gitignore and never committed to version control