# 关于 jwilder/nginx-proxy 教程的讨论？

**URL:** <https://meta.discourse.org/t/discourse-with-jwilder-nginx-proxy-howtos/94604>\
**Category:** Self-hosting\
**Created:** [2018年八月13日 13:49 UTC](https://meta.discourse.org/t/discourse-with-jwilder-nginx-proxy-howtos/94604 "2018-08-13T13:49:55Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![vitorl](https://avatars.discourse-cdn.com/v4/letter/v/57b2e6/32.png) [@vitorl](https://meta.discourse.org/u/vitorl)\
**Post date:** [2019年四月6日 00:19 UTC](https://meta.discourse.org/t/discourse-with-jwilder-nginx-proxy-howtos/94604/12 "2019-04-06T00:19:59Z")

</div>

I use Cloudflare to hide my server IP and won’t disable it, even if it means not getting the real IP’s.

What I have noticed is that if I use the Cloudflare template I see my docker IP in the access.log, regardless of having this snippet or not:

```plaintext
  - replace:
      filename: /etc/nginx/conf.d/discourse.conf
      from: "types {"
      to: |
        set_real_ip_from 172.18.0.0/24;
        real_ip_header X-Forwarded-For;
        real_ip_recursive on;
        types {

```

If I remove the Cloudflare template and use just the snippet above I see Cloudflare IP’s on my logs.

---

_[View the full topic](https://meta.discourse.org/t/discourse-with-jwilder-nginx-proxy-howtos/94604)._
