# 全局速率限制和节流可用设置

**URL:** <https://meta.discourse.org/t/available-settings-for-global-rate-limits-and-throttling/78612>\
**Category:** Self-Hosting\
**Tags:** reference\
**Created:** [2018年一月22日 01:25 UTC](https://meta.discourse.org/t/available-settings-for-global-rate-limits-and-throttling/78612 "2018-01-22T01:25:26Z")\
**Posts on this page:** 1\
**Showing post:** 72

<div class="post-metadata">

**Author:** ![guidoleenders](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/guidoleenders/32/196268_2.png) [@guidoleenders](https://meta.discourse.org/u/guidoleenders)\
**Post date:** [2024年七月19日 13:29 UTC](https://meta.discourse.org/t/available-settings-for-global-rate-limits-and-throttling/78612/72 "2024-07-19T13:29:37Z")

</div>

关于以下文本：

> ### 防火墙和代理警告！ ⚠
> 
> 如果您运行的反向代理配置不当，Discourse 可能会认为所有请求都来自单个 IP 地址，您很可能会很快达到速率限制。请务必配置您的反向代理以正确转发 IP。

在我们的设置中，我们通过代理隧道传输所有 API 调用。此代理在有时查询 Discourse 之前会处理身份验证和许多其他事务。

转发原始请求者 IP 地址的推荐方法（特定标头？）是什么？

## 相关

> [@Rate Limiting w/ Reverse Proxy](https://meta.discourse.org/t/rate-limiting-w-reverse-proxy/209354):
>
> Had a question on what header is being used for rate-limiting. For context we have an nginx.conf w/ set\_real\_ip and we’re using a provider that sends us traffic with the client’s actual IP in Some-Client-IP header. sendfile on; set\_real\_ip\_from ...; set\_real\_ip\_from ...; set\_real\_ip\_from ...; set\_real\_ip\_from ...; real\_ip\_header Some-Client-IP; real\_ip\_recursive on; Some-Client-IP is what we get from upstream w/ the actual user’s IP. In the current discourse.conf in conf.d for nginx. We ha…

---

_[View the full topic](https://meta.discourse.org/t/available-settings-for-global-rate-limits-and-throttling/78612)._
