This repository was archived by the owner on Mar 6, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
56 lines (48 loc) · 1.66 KB
/
.env.example
File metadata and controls
56 lines (48 loc) · 1.66 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
# ==================================
# Server Configuration
# ==================================
NODE_ENV=development
PORT=8000
HOST=0.0.0.0
# ==================================
# Database Configuration
# ==================================
# For development: sqlite (uses local database.sqlite file)
# For production: postgres
DB_DIALECT=sqlite
# PostgreSQL settings (only needed if DB_DIALECT=postgres)
DB_HOST=localhost
DB_PORT=5432
DB_NAME=your_database_name
DB_USER=your_database_user
DB_PASSWORD=your_database_password
# ==================================
# Authentication (JWT)
# ==================================
# IMPORTANT: Generate strong secrets for production
# You can use: node -e "console.log(require('crypto').randomBytes(64).toString('hex'))"
JWT_SECRET=your_jwt_secret_here_change_in_production
JWT_REFRESH_SECRET=your_jwt_refresh_secret_here_change_in_production
# ==================================
# CORS Configuration
# ==================================
# Comma-separated list of allowed origins
CORS_ORIGINS=http://localhost:3000,http://localhost:5173
# ==================================
# CSRF Cookie Configuration
# ==================================
# Allowed values: lax, strict, none
CSRF_COOKIE_SAMESITE=lax
# ==================================
# GitHub Integration (for file uploads)
# ==================================
GITHUB_REPO=username/repository
GITHUB_TOKEN=ghp_your_github_token
GITHUB_UPLOAD_PATH=public/assets
# Committer info for GitHub commits
COMMITTER_NAME=Your Name
COMMITTER_EMAIL=your.email@example.com
# ==================================
# Monitoring (Optional)
# ==================================
# SENTRY_DSN=https://your-sentry-dsn