sam
2281b3e478
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. |
||
---|---|---|
.. | ||
Dockerfile | ||
go.mod | ||
go.sum | ||
handler.go | ||
main.go | ||
proxy-config.example.json | ||
rate_limiter.go | ||
README.md |
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