-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathenv.example
More file actions
36 lines (31 loc) · 964 Bytes
/
env.example
File metadata and controls
36 lines (31 loc) · 964 Bytes
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
# Django API Configuration
DJANGO_ENV=development
DJANGO_SECRET_KEY=dev-secret-key-change-in-production
DJANGO_DEBUG=True
DJANGO_ALLOWED_HOSTS=localhost,127.0.0.1,0.0.0.0,api
# Database Configuration
DB_NAME=sga_time_tracking
DB_USER=postgres
DB_PASSWORD=postgres
DB_HOST=db
DB_PORT=5432
# Session Configuration
SESSION_COOKIE_SECURE=False
SESSION_COOKIE_AGE=3600
SESSION_EXPIRE_AT_BROWSER_CLOSE=True
HUB_ABSOLUTE_SESSION_AGE=43200
# Frontend Configuration
NEXT_PUBLIC_API_URL=http://localhost:8000/api
# Development Ports
API_PORT=8000
CLOCK_KIOSK_PORT=3000
MEMBERS_HUB_PORT=3001
DB_PORT=5432
# Production Configuration (Railway)
# DJANGO_ENV=production
# DATABASE_URL=postgresql://user:password@host:port/database
# CORS_ALLOWED_ORIGINS=https://your-frontend-domain.com,https://another-domain.com
# CLOCK_KIOSK_URL=https://your-clock-kiosk.railway.app
# MEMBERS_HUB_URL=https://your-members-hub.railway.app
# ADMIN_NAME=SGA Admin
# ADMIN_ACCESS_CODE=123456