# What's the proper way to set up Discourse behind a reverse proxy?

**URL:** https://meta.discourse.org/t/whats-the-proper-way-to-set-up-discourse-behind-a-reverse-proxy/30262
**Category:** Self-hosting
**Created:** [20 ביוני,‏ 2015,‏ 11:15pm UTC](https://meta.discourse.org/t/whats-the-proper-way-to-set-up-discourse-behind-a-reverse-proxy/30262 "2015-06-20T23:15:07Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [20 ביוני,‏ 2015,‏ 11:17pm UTC](https://meta.discourse.org/t/whats-the-proper-way-to-set-up-discourse-behind-a-reverse-proxy/30262/2 "2015-06-20T23:17:21Z")

</div>

if you expose a port/ip, all traffic for that port will be handled. The only issue you need to resolve is IP forwarding. So you need to customize NGINX to allow for the forwarded IP addresses so it does not look like all traffic is coming from 1 IP, there is a post here on meta covering that.

---

_[View the full topic](https://meta.discourse.org/t/whats-the-proper-way-to-set-up-discourse-behind-a-reverse-proxy/30262)._
