-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
27 lines (23 loc) · 954 Bytes
/
Copy path.env.example
File metadata and controls
27 lines (23 loc) · 954 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
# Database configuration
POSTGRES_USER=your_postgres_user
POSTGRES_PASSWORD=your_postgres_password
POSTGRES_DB=your_database_name
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
# JWT and security settings
SECRET_KEY=your_secret_key
ALGORITHM=HS256
ACCESS_TOKEN_EXPIRES_DELTA=30 # Expiration time in minutes
REFRESH_TOKEN_EXPIRES_DELTA=1440 # Expiration time in minutes (24 hours)
# Admin user configuration
ADMIN_EMAIL=admin@example.com
ADMIN_PASSWORD=your_admin_password
ADMIN_NAME=Admin
# CORS configuration
CORS_ORIGINS=http://localhost,http://yourdomain.com # Comma-separated list of allowed origins
# Environment configuration
ENVIRONMENT=production # or "development" for dev mode
USE_SSL=true # Set to true to enforce SSL in production
SECURE_COOKIE=true # Set to true to enforce secure cookies
ENABLE_DOCS=false # Set to true to enable FastAPI documentation routes
LOG_LEVEL=INFO # Set to "DEBUG" for development or "INFO" for production