Masto Docs

From neuromatch

Discord

sneakers-the-rat#technical-wg23-04-06 23:26:09

So Masto Docs Rate Limiting is controlled by Rack Attack - https://github.com/NeuromatchAcademy/mastodon/blob/main/config/initializers/rack_attack.rb - logging: https://github.com/NeuromatchAcademy/mastodon/blob/main/config/initializers/rack_attack_logging.rb - docs: https://github.com/rack/rack-attack#throttling

The throttling rules differentiate between authenticated and unauthenticated API requests, so I would want to raise the authenticated ones. Unfortunately the logging does not actually tell me what *kind* of throttle is being hit (eg. the authenticated api vs token api vs paging api, etc.) and the throttling rules definitely overlap with one another... so I'm going to make that change first - log the kind of throttle that is hit, and then come back later and actually adjust values