8 lines
288 B
Python
8 lines
288 B
Python
"""Shared Flask-Limiter instance, keyed by IP — every route here is public
|
|
and unauthenticated, so there's no user/tenant identity to key on instead."""
|
|
|
|
from flask_limiter import Limiter
|
|
from flask_limiter.util import get_remote_address
|
|
|
|
limiter = Limiter(key_func=get_remote_address)
|