Is there a possibility to send a request to an external service, asking for permission, before Caddy is processing a request when configured as a reverse proxy?
example.com {
# send a request to api.example.com before continuing
# if response == 200 -> continue
# if response == 403 -> return 403
reverse_proxy {
to app1:8000 app2:8000
}
}
I’m basically looking for the equivalent of nginx auth_request
directive: Module ngx_http_auth_request_module