nginx/passenger配置允许访问自定义标头

tim*_*one 1 ruby-on-rails passenger nginx

我正在使用一个名为auth_token的自定义标头,我将其传递给我的rails后端.在localhost/webrick上,我可以访问:

curl -H "auth_token: r5O_IdqpWStqmJFe0pil0Q" http://localhost:3000
Run Code Online (Sandbox Code Playgroud)

并且可以使用以下标题访问标头值:

auth_token=request.headers["auth_token"] if request.headers["auth_token"]. 
Run Code Online (Sandbox Code Playgroud)

但是,当我访问staging(nginx/passenger)时:

curl -H "auth_token: r5O_IdqpWStqmJFe0pil0Q" http://staging.domain.com/
Run Code Online (Sandbox Code Playgroud)

它无法访问标头值.我需要对nginx/passenger进行任何配置以允许它访问此自定义标头吗?

谢谢