我正在为nginx使用auth模块.(http://nginx.org/en/docs/http/ngx_http_auth_request_module.html)是否有可能以某种方式存储来自/ auth的响应,因此我可以将其作为请求主体发送到另一个端点.
location /private/ {
auth_request /auth;
proxy_pass ...
proxy_set_body 'Here I want to put /auth response. How?';
}
location = /auth {
proxy_pass ...
}
Run Code Online (Sandbox Code Playgroud)