Files
grademaxxing/.env.example
2026-01-17 13:37:57 +01:00

27 lines
813 B
Plaintext

# Frontend environment variables
VITE_API_URL=http://localhost:8000/api
# Backend environment variables
# MongoDB connection string
# For local development: mongodb://localhost:27017
# For Docker: mongodb://mongodb:27017
# For remote MongoDB: mongodb://username:password@host:port
MONGODB_URL=mongodb://mongodb:27017
# Database name
DATABASE_NAME=grademaxxing
# JWT Secret Key - CHANGE THIS IN PRODUCTION!
# Generate a secure key with: python -c "import secrets; print(secrets.token_urlsafe(64))"
SECRET_KEY=your-super-secret-key-change-this-in-production
# JWT Algorithm
ALGORITHM=HS256
# Access token expiration in minutes (default: 43200 = 30 days)
ACCESS_TOKEN_EXPIRE_MINUTES=43200
# CORS allowed origins (comma-separated)
CORS_ORIGINS=http://localhost:5173,http://localhost:8000,http://127.0.0.1:8000