-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathenv.EXAMPLE
More file actions
53 lines (43 loc) · 1.4 KB
/
env.EXAMPLE
File metadata and controls
53 lines (43 loc) · 1.4 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
# OurSchool Environment Configuration
# Copy this file to .env and update the values for your environment
# Database Configuration
# You can either use individual database settings or a full DATABASE_URL
DATABASE_HOST=localhost
DATABASE_PORT=5432
DATABASE_NAME=ourschool
DATABASE_USER=postgres
DATABASE_PASSWORD=your-secure-password-here
# Security Configuration
SECRET_KEY=your-very-secure-secret-key-change-this-in-production
ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=30
# Backend Server Configuration
BACKEND_HOST=0.0.0.0
BACKEND_PORT=8000
# Frontend Server Configuration (for development reference)
FRONTEND_HOST=0.0.0.0
FRONTEND_PORT=4173
# Logging Configuration
LOG_LEVEL=INFO
LOG_FORMAT=json
# Optional: LOG_FILE=/var/log/ourschool/app.log
# CORS Configuration
ALLOWED_ORIGINS=http://localhost:4173,http://localhost:5173,http://localhost:3000,http://frontend:4173
# Frontend API URL (for production, change to your domain)
VITE_API_BASE_URL=http://localhost:8000
# Docker-specific configuration (uncomment when using Docker)
# POSTGRES_DB=ourschool
# POSTGRES_USER=postgres
# POSTGRES_PASSWORD=docker_password
# Development vs Production Examples:
#
# Development:
# LOG_LEVEL=DEBUG
# LOG_FORMAT=text
# ALLOWED_ORIGINS=http://localhost:5173,http://localhost:3000
#
# Production:
# LOG_LEVEL=INFO
# LOG_FORMAT=json
# LOG_FILE=/var/log/ourschool/app.log
# ALLOWED_ORIGINS=https://yourapp.com,https://www.yourapp.com