Is it possible to persist some data in the javascript module of nginx?
I need to safe some data from the request to validate if the following requests are allowed.
I would try to use it by writing a file and reading it. https://github.com/nginx/njs/issues/75 Here is someone kinda using it. Second idea would be to just try to setup it as a nginx variable or something. https://www.docs4dev.com/docs/en/nginx/current/reference/http-ngx_http_js_module.html