# IP 주소 기록을 비활성화하는 방법?

**URL:** https://meta.discourse.org/t/how-to-disable-logging-ip-address/192656
**Category:** Support
**Created:** [6월 4, 2021, 8:26오전 UTC](https://meta.discourse.org/t/how-to-disable-logging-ip-address/192656 "2021-06-04T08:26:27Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![adriaan](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@adriaan](https://meta.discourse.org/u/adriaan)
#### Post date: [2월 12, 2023, 4:25오전 UTC](https://meta.discourse.org/t/how-to-disable-logging-ip-address/192656/4 "2023-02-12T04:25:37Z")

</div>

향후 검색을 위해: discourse 인스턴스 앞에 NGINX를 사용할 수 있으며, `X-Real-IP`를 고정된 IP인 `127.0.0.1`으로 설정할 수 있습니다:

```plaintext
  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-Proto https;
    proxy_set_header X-Real-IP 127.0.0.1;
  }

```

이 부분을 생략하지 마세요. 그렇지 않으면 오류가 발생하여 애플리케이션이 시작되지 않습니다:

```plaintext
Completed 500 Internal Server Error in 149ms (Views: 11.1ms | ActiveRecord: 0.0ms | Allocations: 70970)
PG::InvalidTextRepresentation (ERROR: invalid input syntax for type inet: "unix:"
LINE 7: client_ip = 'unix:',
                        ^
)

```

---

_[View the full topic](https://meta.discourse.org/t/how-to-disable-logging-ip-address/192656)._
