# Issue w/ nginx after updating

**URL:** <https://meta.discourse.org/t/issue-w-nginx-after-updating/216262>\
**Category:** Self-hosting\
**Created:** [January 27, 2022, 11:37pm UTC](https://meta.discourse.org/t/issue-w-nginx-after-updating/216262 "2022-01-27T23:37:46Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![cookieman768](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cookieman768/32/118511_2.png) [@cookieman768](https://meta.discourse.org/u/cookieman768)\
**Post date:** [January 28, 2022, 3:47am UTC](https://meta.discourse.org/t/issue-w-nginx-after-updating/216262/4 "2022-01-28T03:47:23Z")

</div>

Hmm, yeah - it looks like the `nginx: [emerg] host not found in set_real_ip_from "131.0.72.0/222400:cb00::/32" in /etc/nginx/conf.d/discourse.conf:116` is still being spammed in the logs even after setting Cloudflare to DNS only. If anyone has other troubleshooting ideas, I’m all for it! 🙂

EDIT: I think I found the culprit - there was a custom commands section at the end of my `app.yml` it looks like in newer installs this is handled by the template. I’m commenting it out and using the template.

EDIT 2: Yeah, it looks like I installed Discourse before the template came out so my template was in the app.yml, simply removing it from the app.yml and using the template fixed it. Thank you for the help @pfaffman!

---

_[View the full topic](https://meta.discourse.org/t/issue-w-nginx-after-updating/216262)._
