# Config help when reverse proxy and discourse on seperate computers

**URL:** https://meta.discourse.org/t/config-help-when-reverse-proxy-and-discourse-on-seperate-computers/403720
**Category:** Self-hosting
**Tags:** nginx
**Created:** [May 24, 2026, 3:15pm UTC](https://meta.discourse.org/t/config-help-when-reverse-proxy-and-discourse-on-seperate-computers/403720 "2026-05-24T15:15:00Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![selfaware](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@selfaware](https://meta.discourse.org/u/selfaware)
#### Post date: [May 24, 2026, 3:15pm UTC](https://meta.discourse.org/t/config-help-when-reverse-proxy-and-discourse-on-seperate-computers/403720/1 "2026-05-24T15:15:00Z")

</div>

Hi,

System: Unbuntu 24.04  
Nginix

I have a fully functional discourse server running @ [forum.example.com](http://forum.example.com) on e.g, 192.168.0.2 and a reverse proxy hosting a static home page @ [example.com](http://example.com) on e.g., 192.168.0.1.

Since the reverse proxy hosting [example.com](http://example.com) (index.html) and the discourse server [forum.example.com](http://forum.example.com) are on two separate local computers I had the following questions, pertaining to config settings for the server block on the reverse proxy and app.yml settings for the discourse server.

Questions 1.

I assume that  
proxy\_pass [http://unix](http://unix):/var/discourse/shared/standalone/nginx.http.sock;

would look like this:  
proxy\_pass [http://192.168.0.2](http://192.168.0.2)

If so, would I need to also assign a port

e.g.,

proxy\_pass [http://192.168.0.2:8080](http://192.168.0.2:8080)  
and if a port assignment is required what port should I use and how would that  
be reflected in the discourse app.yml file as it pertains to:

#expose:

# - “80:80” # http

# - “443:443” # https.

I’m aware of the discourse knowledge base on setting up discourse on a reverse proxy, whereby both the reverse proxy and discourse are on the same computer, but did not have much success in finding, other than AI results of what differences would exist when the reverse proxy and discourse instance are on two separate computers.

P.S. if there are any other config changes different from when both reverse proxy and discourse are on same computer, please reveal.

Thank you.

---

_[View the full topic](https://meta.discourse.org/t/config-help-when-reverse-proxy-and-discourse-on-seperate-computers/403720)._
