# Nginx limitação de taxa fora do container - alguma dica?

**URL:** <https://meta.discourse.org/t/nginx-rate-limiting-outside-of-container-any-tips/143711>\
**Category:** Self-hosting\
**Created:** [Março 9, 2020, 4:32pm UTC](https://meta.discourse.org/t/nginx-rate-limiting-outside-of-container-any-tips/143711 "2020-03-09T16:32:28Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Overgrow](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/overgrow/32/478189_2.png) [@Overgrow](https://meta.discourse.org/u/Overgrow)\
**Post date:** [Março 9, 2020, 4:32pm UTC](https://meta.discourse.org/t/nginx-rate-limiting-outside-of-container-any-tips/143711/1 "2020-03-09T16:32:29Z")

</div>

Alguém pode compartilhar sua configuração funcional para limitação de taxa do nginx fora de um container Docker (configurado com o Discourse no socket)? Obrigado..

Parece que não consigo ajustá-lo corretamente e ainda estou limitando tráfego válido.

> [@Add an offline page to display when Discourse is rebuilding or starting up](https://meta.discourse.org/t/adding-an-offline-page-when-rebuilding/45238/72?u=overgrow):
>
> It should be noted that running an nginx proxy in front of Discourse as described here will result in the rate limit, which is by default configured in Discourse Docker to apply for requests for all users. The [rate limit template](https://github.com/discourse/discourse_docker/blob/ceffc4433e1bd6fcbd101f2427e17232fc99ab14/templates/web.ratelimited.template.yml) templates/web.ratelimited.template.yml should be removed from the docker config and the rate limit should then be configured in the outer nginx instance instead.

---

_[View the full topic](https://meta.discourse.org/t/nginx-rate-limiting-outside-of-container-any-tips/143711)._
