# Discourse가 서버 IP/localhost를 사용자 IP로 표시

**URL:** https://meta.discourse.org/t/discourse-shows-server-ip-localhost-as-users-ip/232474
**Category:** Self-hosting
**Tags:** unsupported-install
**Created:** [7월 11, 2022, 8:43오전 UTC](https://meta.discourse.org/t/discourse-shows-server-ip-localhost-as-users-ip/232474 "2022-07-11T08:43:24Z")
**Posts on this page:** 1
**Showing post:** 18

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [7월 12, 2022, 9:12오전 UTC](https://meta.discourse.org/t/discourse-shows-server-ip-localhost-as-users-ip/232474/18 "2022-07-12T09:12:18Z")

</div>

답변은 위에 링크되어 있습니다. 다음과 같은 것이 필요합니다.

> [@riking](#):
>
> 그리고 `server_name`과 `location` 스탠사를 다음과 같이 편집합니다:
> 
> ```plaintext
> server_name discourse.example.com; # <-- 이 부분을 변경하세요
> 
> location / {
> proxy_pass http://unix:/var/discourse/shared/standalone/nginx.http.sock:;
> proxy_set_header Host $http_host;
> proxy_http_version 1.1;
> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
> proxy_set_header X-Forwarded-Proto $scheme;
> proxy_set_header X-Real-IP $remote_addr;
> 
> }
> 
> ```

---

_[View the full topic](https://meta.discourse.org/t/discourse-shows-server-ip-localhost-as-users-ip/232474)._
