Closed snaffi closed 7 years ago
I think you should remove uwsgi_pass
from this location, because it may override content_by_lua_file
handler. I guess you want that api backend in location /api
. Please reopen if you still have the issue with auth_request
.
I use access_by_lua
directive.
access_by_lua '
local res = ngx.location.capture("/api/v1/auth/check_auth")
if res.status == ngx.HTTP_OK then
return
end
ngx.exit(res.status)
';
Thank you for response.
I can not use auth_request. Nginx proxy body to my backend on
/ upload
, instead of performing sub request on/ api / v1 / check_auth
. Can you help me? @pgaertig