title: Display remote user retrieved from auth_request in access logs in Nginx
body: <p>I have the following configuration in nginx:</p>
  <pre><code>    location /api/ {
          auth_request /auth/request/;
  
          auth_request_set $user $upstream_http_remote_user;
          proxy_set_header Remote-User $user;
        
  
          proxy_pass http://...;
      }
  </code></pre>
  <p>I am setting the <code>Remote-User</code> field, so I would expect that in the access log, the value would appear, but it's only <code>-</code> that appear, indicating the value does not exist. In the server proxied there, I can access the header <code>Remote-User</code>, so I know that the value is well set, but can't manage to display it in the access logs.</p>
  <p>I suppose the access log are generated before the auth request maybe.</p>
  <p>Is there a way to get the <code>Remote-User</code> inside the access logs with this kind of configuration?</p>