albjeremias
(Albatroz Jeremias)
February 23, 2023, 2:44pm
1
I have multiple users sharing the same ip address using my discourse instance, how do I tune the rate limiting on the new discourse 3? i dont think this has very good default values, they seem to low. i didn’t get this problem with the previous version
pfaffman
(Jay Pfaffman)
February 23, 2023, 6:49pm
2
You can set these in your ENV section in app.yml
.
DISCOURSE_MAX_REQS_PER_IP_PER_10_SECONDS: 200
DISCOURSE_MAX_REQS_PER_IP_PER_MINUTE: 400
2 Likes
Canapin
(Coin-coin le Canapin)
February 24, 2023, 3:40pm
3
For your information, there is documentation about rate limits:
Discourse ships with 3 different global rate limits that can be configured by site admins.
Global per-ip rate limits
These limits apply to every unique IP address that hits the Discourse application. (files that are served directly from the filesystem or the CDN are excluded)
By default this rate limit is enabled, you may disable it or set it to a reporting mode.
DISCOURSE_MAX_REQS_PER_IP_MODE : default block, this rate limit applies out of the box. (other options are warn, warn+block, and n…
It’s easily found by using the search. First result
2 Likes