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

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

  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;
  }

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

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:',
                        ^
)