diff options
| author | Christian Cleberg <[email protected]> | 2026-07-14 20:22:26 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-07-14 20:22:26 -0500 |
| commit | 5763dc3cfeadf491d6eda3b6a91623f86396a134 (patch) | |
| tree | e75db0fb1e45f91628a2e84df0754e2d59cdcb1f /compose.example.yaml | |
| parent | 8a00f7c55cdbcddcd878c01a79f2db7dc3f080ef (diff) | |
| download | skunky-art-5763dc3cfeadf491d6eda3b6a91623f86396a134.tar.gz skunky-art-5763dc3cfeadf491d6eda3b6a91623f86396a134.tar.bz2 skunky-art-5763dc3cfeadf491d6eda3b6a91623f86396a134.zip | |
feat: throttle and time out outbound DeviantArt requests
DeviantArt fronts its API with CloudFront + WAF, which bans egress IPs
that hit it too hard. devianter issues requests with a bare http.Client,
so unbounded concurrent handlers each pulled ~150-200 KB of JSON, which
both risked a ban and could exhaust the process under a bot flood.
Wrap the default transport to bound rate and concurrency for
deviantart.com and add timeouts. Other hosts (wixmp image CDN) pass
straight through, so media stays fast, and ProxyFromEnvironment is
preserved so HTTPS_PROXY egress still works.
Diffstat (limited to 'compose.example.yaml')
0 files changed, 0 insertions, 0 deletions
