Discourseで二重Nginxエラーが発生しました:`discourse-common/lib/raw-handlebars`からインポートされたモジュール`handlebars`が見つかりません

By the way, share a problem where using double nginx causes can’t get the real user IP address.
This is because my custom nginx enables X-Forwarded-For header field to get client IP address, but does not disenable X-Forwarded-For of discourse’s nginx. Causes the custom nginx X-Forwarded-For configuration to be overwritten by discourse’s nginx