-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathenv.example
More file actions
79 lines (66 loc) · 2.35 KB
/
env.example
File metadata and controls
79 lines (66 loc) · 2.35 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
# Gateway Configuration
GATEWAY_PORT=3000
# User Service Configuration
USER_SERVICE_PORT=3002
USER_SERVICE_NODE_ENV=development
NODE_ENV=development
USER_SERVICE_AIRTABLE_API_KEY=your_airtable_api_key_here
CORS_ORIGIN=http://localhost:5173,http://localhost:3000
MAIL_SERVICE_URL=http://localhost:3003
# Security Configuration
COOKIE_DOMAIN=localhost
# Database Configuration (PostgreSQL)
DATABASE_URL=postgresql://username:password@localhost:5432/midnight_db
MAIL_SERVICE_DATABASE_URL=postgresql://username:password@localhost:5432/midnight_db
# Redis Configuration
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
REDIS_DB=0
# Admin Configuration
ADMIN_EMAIL_WHITELIST=admin@example.com,admin2@example.com
# Hackatime Configuration
HACKATIME_ADMIN_API_URL=https://hackatime.hackclub.com/api/admin/v1
HACKATIME_API_KEY=your_hackatime_api_key_here
# Mail Service Configuration
MAIL_SERVICE_PORT=3003
MAIL_SERVICE_CORS_ORIGIN=http://localhost:3000
AWS_REGION=us-east-1
SMTP_HOST=email-smtp.us-east-1.amazonaws.com
SMTP_PORT=587
SMTP_USER=your_smtp_username_here
SMTP_PASS=your_smtp_password_here
EMAIL_FROM=noreply@midnight.hackclub.com
# S/MIME Configuration (Optional - for encrypted email)
# Can be either file paths or base64 encoded certificate content
SMIME_PRIVATE_KEY_PATH=/path/to/certs/private-key.pem
SMIME_CERT_PATH=/path/to/certs/certificate.pem
SMIME_CHAIN_PATH=/path/to/certs/chain.pem
# Frontend Configuration (SvelteKit)
LARK_UI_PORT=5173
PUBLIC_API_URL=http://localhost:3000
VITE_API_URL=http://localhost:3002
# Cloudflare R2 Configuration
R2_ENDPOINT=https://your-account-id.r2.cloudflarestorage.com
R2_REGION=auto
R2_ACCESS_KEY_ID=your_r2_access_key_id
R2_SECRET_ACCESS_KEY=your_r2_secret_access_key
R2_BUCKET=your_r2_bucket_name
R2_PUBLIC_BASE_URL=https://cdn.midnigh.leafd.dev
# Slack Bot Configuration (optional - for submission notifications)
SLACK_BOT_TOKEN=xoxb-your-bot-token
SLACK_SIGNING_SECRET=your-signing-secret
# Datadog Configuration (optional)
DD_AGENT_HOST=localhost
DD_TRACE_AGENT_PORT=8126
DD_APM_ENABLED=true
DD_PROFILING_ENABLED=true
DD_SERVICE=owl-api
DD_ENV=production
DD_VERSION=1.0.0
# Production Settings (uncomment for production)
# NODE_ENV=production
# USER_SERVICE_NODE_ENV=production
# CORS_ORIGIN=https://your-frontend-domain.com,https://your-api-domain.com
# PUBLIC_API_URL=https://your-api-domain.com
# COOKIE_DOMAIN=.your-domain.com