32 lines
838 B
Plaintext
32 lines
838 B
Plaintext
# Database Configuration
|
|
POSTGRES_DB=fastapi_db
|
|
POSTGRES_USER=fastapi_user
|
|
POSTGRES_PASSWORD=your_secure_password_here
|
|
POSTGRES_HOST=postgres
|
|
POSTGRES_PORT=5432
|
|
|
|
# Database URL (constructed from above variables)
|
|
DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}
|
|
|
|
# FastAPI Configuration
|
|
FASTAPI_TITLE=FastAPI ISS Project
|
|
FASTAPI_DESCRIPTION=A FastAPI project with Docker and PostgreSQL support
|
|
FASTAPI_VERSION=1.0.0
|
|
|
|
# Application Configuration
|
|
PYTHONPATH=/app
|
|
PYTHONUNBUFFERED=1
|
|
|
|
# Security (for production, change these values)
|
|
SECRET_KEY=your_super_secret_key_here_change_in_production
|
|
ALGORITHM=HS256
|
|
ACCESS_TOKEN_EXPIRE_MINUTES=30
|
|
|
|
# CORS Configuration
|
|
ALLOWED_ORIGINS=["*"]
|
|
ALLOWED_CREDENTIALS=true
|
|
ALLOWED_METHODS=["*"]
|
|
ALLOWED_HEADERS=["*"]
|
|
|
|
# Logging
|
|
LOG_LEVEL=INFO |