Rate Limit results in 502 from Nginx

After changing the Rate Limit, Nginx now returns 502 bad gateway.

How can I revert Rate Limit value to 0 (unset) from the command line? Where is this value stored?

As suggested in the documentation, I’ve added SENTRY_OPTIONS['system.rate-limit'] = 500 to our sentry.conf.py but the problem persists.

Running Sentry On-Premise 21.1.0, Ubuntu 20.04, Redis 6.0.8, Docker 1.28.2, HAProxy 2.2, Postgres 12.4

A 502 indicates a backend failure, can you share the logs for the web and relay services?