Foxnouns.NET/rate
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
..
Dockerfile feat: add docker configuration 2024-09-14 18:07:49 +02:00
go.mod feat: add docker configuration 2024-09-14 18:07:49 +02:00
go.sum feat: add docker configuration 2024-09-14 18:07:49 +02:00
handler.go feat: rate limiter lets api v1 requests through 2024-12-25 12:08:53 -05:00
main.go feat: add docker configuration 2024-09-14 18:07:49 +02:00
proxy-config.example.json fix: replace port 5000 in example docs with port 6000 2024-12-25 14:03:15 -05:00
rate_limiter.go rate limit tweaks 2024-12-02 16:13:56 +01:00
README.md feat: add rate limiter proxy 2024-09-10 16:53:43 +02:00

Rate limiting proxy

This is a service that's meant to sit between nginx (or another reverse proxy) and Foxnouns.Backend. To configure, copy proxy-config.example.json to your working directory, rename it to proxy-config.json, and change any keys you need to.

Build with go build -v . and run with ./rate