Commit graph

7 commits

Author SHA1 Message Date
sam
2281b3e478
fix: replace port 5000 in example docs with port 6000
macOS runs a service on port 5000 by default. this doesn't actually
prevent the backend server from *starting*, or the rate limiter proxy
from working, but it *does* mean that when the backend restarts, if the
proxy sends a request, it will stop working until it's restarted.

the easiest way to work around this is by just changing the port the
backend listens on. this does not change the ports used in the docker
configuration.
2024-12-25 14:03:15 -05:00
sam
140419a1ca
feat: rate limiter lets api v1 requests through 2024-12-25 12:08:53 -05:00
sam
b47ed7b699
rate limit tweaks
the /users/{id} prefix contains most API routes so it's not a good idea
to put a single rate limit on *all* of them combined. the rate limiter
will now ignore the /users/{id} prefix *if* there's a second {id}
parameter in the URL.

also, X-RateLimit-Bucket is no longer hashed, so it can be directly
decoded by clients to get the actual bucket name. i'm not sure if this
will actually be useful, but it's nice to have the option.
2024-12-02 16:13:56 +01:00
sam
8bba5f6137
fix: tweak rate limits as just browsing is triggering them 2024-11-25 16:15:07 +01:00
sam
cf2f624ae4
feat: add docker configuration 2024-09-14 18:07:49 +02:00
sam
8054d68f79
feat(rate): add customizable X-Powered-By header 2024-09-10 18:49:25 +02:00
sam
3d22385689
feat: add rate limiter proxy 2024-09-10 16:53:43 +02:00