mockapi/example.env
cclohmar 280e9ca357 docs: update example.env with all configuration variables
- Add HOST, PORT, LOG_LEVEL, and OAuth2 settings to example.env
- Update README to reference example.env for complete configuration
- Ensure users have all required variables for production deployment
2026-03-16 19:12:22 +00:00

19 lines
606 B
Bash

DATABASE_URL=sqlite+aiosqlite:///./mockapi.db
ADMIN_USERNAME=admin
ADMIN_PASSWORD=admin123 # Change this in production
SECRET_KEY=your-secret-key-here-change-me
# Application Settings
DEBUG=False
LOG_LEVEL=INFO
HOST=0.0.0.0
PORT=8000
# OAuth2 Settings
OAUTH2_ISSUER=http://localhost:8000
OAUTH2_ACCESS_TOKEN_EXPIRE_MINUTES=30
OAUTH2_REFRESH_TOKEN_EXPIRE_DAYS=7
OAUTH2_AUTHORIZATION_CODE_EXPIRE_MINUTES=10
OAUTH2_SUPPORTED_GRANT_TYPES=["authorization_code", "client_credentials", "refresh_token"]
OAUTH2_SUPPORTED_SCOPES=["openid", "profile", "email", "api:read", "api:write"]
OAUTH2_PKCE_REQUIRED=false