# How to set set\_real\_ip\_from for discourse

**URL:** <https://meta.discourse.org/t/how-to-set-set-real-ip-from-for-discourse/74416>\
**Category:** Support\
**Created:** [11월 20, 2017, 11:02오전 UTC](https://meta.discourse.org/t/how-to-set-set-real-ip-from-for-discourse/74416 "2017-11-20T11:02:33Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![parisa](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@parisa](https://meta.discourse.org/u/parisa)\
**Post date:** [11월 20, 2017, 11:02오전 UTC](https://meta.discourse.org/t/how-to-set-set-real-ip-from-for-discourse/74416/1 "2017-11-20T11:02:33Z")

</div>

I want to do something like this in discourse:

```plaintext
    set_real_ip_from 127.0.0.1;
    set_real_ip_from 1.2.3.4;
    real_ip_header X-Forwarded-For;
    real_ip_recursive on;

```

Normally I would do it in an nginx.conf file. However with discourse, I don’t know what to do. Can someone help me?

---

_[View the full topic](https://meta.discourse.org/t/how-to-set-set-real-ip-from-for-discourse/74416)._
