# Discourse socketed: Nginx in front of discourse: no IP adresses

**URL:** https://meta.discourse.org/t/discourse-socketed-nginx-in-front-of-discourse-no-ip-adresses/96382
**Category:** Self-hosting
**Created:** [5 september 2018 om 06:20 UTC](https://meta.discourse.org/t/discourse-socketed-nginx-in-front-of-discourse-no-ip-adresses/96382 "2018-09-05T06:20:23Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![TheBestPessimist](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thebestpessimist/32/247704_2.png) [@TheBestPessimist](https://meta.discourse.org/u/TheBestPessimist)
#### Post date: [5 september 2018 om 07:43 UTC](https://meta.discourse.org/t/discourse-socketed-nginx-in-front-of-discourse-no-ip-adresses/96382/4 "2018-09-05T07:43:46Z")

</div>

From

> [@Difference between socket- and port-based connection to outer NGINX?](https://meta.discourse.org/t/difference-between-socket-and-port-based-connection-to-outer-nginx/60071/4):
>
> I think there is a typo in the tutorial. At the end of the first line is a colon too much. Don’t forget to rebuild! For https installations It should be: proxy\_pass http://unix:/var/discourse/shared/standalone/nginx.http.sock; proxy\_set\_header X-Real-IP $remote\_addr; proxy\_set\_header Host $host; proxy\_http\_version 1.1; proxy\_set\_header X-Forwarded-For $proxy\_add\_x\_forwarded\_for; proxy\_set\_header X-For…

i tried to add ` proxy_set_header X-Real-IP $remote_addr;` to my config, (after `proxy_set_header X-Forwarded-Proto https;`) but that doesn’t help either.

About `set_real_ip_from`: i see that in the socketed template the unix template is already handled ([https://meta.discourse.org/t/how-do-i-make-the-top-30-ips-report-work-with-socketed-container/33924/](https://meta.discourse.org/t/how-do-i-make-the-top-30-ips-report-work-with-socketed-container/33924/)):

> <https://github.com/discourse/discourse_docker/blob/5fbf7d58dfa5f2bccf206639e0fbc03cc81cb9b9/templates/web.socketed.template.yml#L25>

so that means that i am not passing the IPs correctly?

---

_[View the full topic](https://meta.discourse.org/t/discourse-socketed-nginx-in-front-of-discourse-no-ip-adresses/96382)._
