# Use X-Forwarded or not?

**URL:** https://meta.discourse.org/t/use-x-forwarded-or-not/167128
**Category:** Self-hosting
**Created:** [October 13, 2020, 9:00pm UTC](https://meta.discourse.org/t/use-x-forwarded-or-not/167128 "2020-10-13T21:00:27Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![aliyosefzai](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@aliyosefzai](https://meta.discourse.org/u/aliyosefzai)
#### Post date: [October 13, 2020, 9:00pm UTC](https://meta.discourse.org/t/use-x-forwarded-or-not/167128/1 "2020-10-13T21:00:27Z")

</div>

Hi,

Our Discourse is setup behind a firewall and all the traffic to nginx is coming from single IP address which is causing errors (429 Too Many requests) for some users accessing the forums.I can forward the original IP’s of the users via X-Forwarded.

Is it ok to use X-Forwarded to forward original IP’s ? If so do we need to make any changes on Discourse side to make it work ?

Thank you

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [October 13, 2020, 9:25pm UTC](https://meta.discourse.org/t/use-x-forwarded-or-not/167128/2 "2020-10-13T21:25:22Z")

</div>

Did you look at the guide on putting Discourse behind nginx?

> [@Run other websites on the same machine as Discourse](https://meta.discourse.org/t/running-other-websites-on-the-same-machine-as-discourse/17247):
>
> @pfaffman edited this heavily 2022.02.24. Blame me if it’s broken. If you want to run other websites on the same machine as Discourse, you need to set up an extra NGINX or HAProxy proxy in front of the Docker container. NOTE: This is for advanced admins This guide assumes you already have Discourse working - if you don’t, it may be hard to tell whether or not the configuration is working. You cannot use ./discourse-setup to set up Discourse if another server is using port 80 or 443. You will…
