-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
executable file
·49 lines (40 loc) · 1.28 KB
/
.env.example
File metadata and controls
executable file
·49 lines (40 loc) · 1.28 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
# Database Configuration
DB_HOST=localhost
DB_PORT=5432
DB_USER=postgres
DB_PASSWORD=your_secure_password_here
DB_NAME=arcapi
DB_SSL_MODE=disable
# Redis Configuration (Optional - for caching and rate limiting)
# Use either REDIS_URL or REDIS_ADDR + REDIS_PASSWORD
REDIS_URL=redis://localhost:6379
# REDIS_ADDR=localhost:6379
# REDIS_PASSWORD=
# JWT Configuration
JWT_SECRET=your_jwt_secret_at_least_32_characters_long
JWT_EXPIRY_HOURS=72
# OAuth - GitHub (Optional)
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
OAUTH_REDIRECT_URL=http://localhost:8080/api/v1/auth/github/callback
# OAuth - Discord (Optional)
DISCORD_CLIENT_ID=
DISCORD_CLIENT_SECRET=
DISCORD_REDIRECT_URL=http://localhost:8080/api/v1/auth/discord/callback
# OAuth Settings
OAUTH_ENABLED=true
FRONTEND_CALLBACK_URL=http://localhost:8080/dashboard/api/auth/github/callback/
# Data Sync Configuration
SYNC_CRON=*/15 * * * *
# Server Configuration
PORT=8080
LOG_LEVEL=info
# Security Configuration (Optional - comma-separated list)
# For development:
# ALLOWED_ORIGINS=http://localhost:3000,http://localhost:8080
# For production (Railway):
# ALLOWED_ORIGINS=https://arcdb.up.railway.app,https://your-frontend-domain.com
# Rate Limiting (Optional - defaults shown)
# RATE_LIMIT_REQUESTS=18
# RATE_LIMIT_WINDOW_SECONDS=60
# RATE_LIMIT_BURST=8