feat: configure default rate limits and integrate SlowAPI middleware
parent
c5f7384b2d
commit
543bc84f70
@ -1,4 +1,7 @@
|
||||
from slowapi import Limiter
|
||||
from slowapi.util import get_remote_address
|
||||
|
||||
limiter = Limiter(key_func=get_remote_address)
|
||||
limiter = Limiter(
|
||||
key_func=get_remote_address,
|
||||
default_limits=["20000 per hour", "100000 per day"]
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue