- Set ORJSONResponse as
default_response_classin FastAPI configuration:- Delete
CORSMiddlewaresince the app usually runs behind a reverse proxy (seenginx/nginx.confexample) GET /healthcheckrouter now returnsORJSONResponsedirectly to avoid overcomplicated (in some cases) validation and serialization to an object compatible with JSON byjsonable_encoder
- Delete
- FastAPI
get_sessiondependency which provides SQLAclhemy AsyncSession with transaction - Update
README.md - Add
nginx/nginx.confexample for production / stage environment - Add
docker-compose-prod.ymlexample for production / stage environment