Старт
This commit is contained in:
36
.env.example
Normal file
36
.env.example
Normal file
@@ -0,0 +1,36 @@
|
||||
# PostgreSQL Database Configuration
|
||||
POSTGRES_USER=auth_user
|
||||
POSTGRES_PASSWORD=auth_password
|
||||
POSTGRES_DB=auth_learning
|
||||
|
||||
# FastAPI Backend Configuration
|
||||
DATABASE_URL=postgresql://auth_user:auth_password@postgres:5432/auth_learning
|
||||
SECRET_KEY=your-secret-key-change-in-production
|
||||
ACCESS_TOKEN_EXPIRE_MINUTES=30
|
||||
REFRESH_TOKEN_EXPIRE_DAYS=7
|
||||
|
||||
# Application URLs (for development)
|
||||
FRONTEND_URL=http://localhost
|
||||
BACKEND_URL=http://localhost:8000
|
||||
|
||||
# CORS Origins (comma separated)
|
||||
CORS_ORIGINS=http://localhost,http://localhost:80
|
||||
|
||||
# Logging Level
|
||||
LOG_LEVEL=INFO
|
||||
|
||||
# Email configuration (for production)
|
||||
# SMTP_HOST=smtp.gmail.com
|
||||
# SMTP_PORT=587
|
||||
# SMTP_USER=your-email@gmail.com
|
||||
# SMTP_PASSWORD=your-password
|
||||
# EMAIL_FROM=noreply@yourapp.com
|
||||
|
||||
# Security
|
||||
# Require HTTPS in production
|
||||
# SECURE_COOKIES=true
|
||||
# SESSION_COOKIE_SECURE=true
|
||||
|
||||
# Development flags
|
||||
DEBUG=true
|
||||
RELOAD=true
|
||||
Reference in New Issue
Block a user