Hi! I'm working on an MQTT reverse proxy. In the js_preread handler function I can do this: function preread(s) { s.on("upload", function(data, flags) { ngx.fetch("http://...").then(reply => reply.text().then(result => { if (isResultCool(result)) { s.allow(); } else { s.deny(); } })); } } and it works (soby wice - How to...
![]() |
![]() |
![]() |
![]() |
![]() |