feat(api): implement rate limiting for abuse prevention
Add @fastify/rate-limit with granular policies for different routes Support TRUST_PROXY environment variable for reverse proxies
This commit is contained in:
@@ -3,6 +3,7 @@ POSTGRES_USER=pokopia
|
||||
POSTGRES_PASSWORD=pokopia
|
||||
DATABASE_URL=postgres://pokopia:pokopia@localhost:5432/pokopia
|
||||
BACKEND_PORT=3001
|
||||
TRUST_PROXY=false
|
||||
FRONTEND_ORIGIN=http://localhost:20015
|
||||
APP_ORIGIN=http://localhost:20015
|
||||
VITE_API_BASE_URL=http://localhost:3001
|
||||
|
||||
Reference in New Issue
Block a user