first commit
This commit is contained in:
26
.env.example
Normal file
26
.env.example
Normal file
@@ -0,0 +1,26 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user