diff options
| author | Adam Soltys <[email protected]> | 2026-08-17 22:32:03 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-08-17 22:32:03 -0700 |
| commit | f242dd2b9376505e354b5f270c910e1fb0a173c4 (patch) | |
| tree | 1763f3b1f82ca629306420e74dad6bed4caa656f /scripts/migrate.py | |
| parent | 984d2c3efeca25c37522c6fb17a9863717b44bc2 (diff) | |
| download | coinos-server-f242dd2b9376505e354b5f270c910e1fb0a173c4.tar.gz coinos-server-f242dd2b9376505e354b5f270c910e1fb0a173c4.zip | |
mintdemux: forward client IP for per-IP rate limiting + partner whitelist + /v1/ws proxy
Forward cf-connecting-ip (or first x-forwarded-for) upstream so the mints' per-IP
rate limiter buckets by the real client instead of demux's socket IP. Partner
hosts that funnel many users through one IP can be listed in whitelist.json with
a pool size; their bucket key rotates across pool synthetic keys for a
proportionally larger allowance. Reloaded every 60s. Also proxy /v1/ws
(subscriptions) through to the new mint.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Diffstat (limited to 'scripts/migrate.py')
0 files changed, 0 insertions, 0 deletions
