Dmitry Volyntsev

Results 119 comments of Dmitry Volyntsev

@pierregangloff The only supported variant of exporting is as follows: `export default {fun1, fun2,...};`

@pierregangloff Do you use `js_include` or `js_import` directive? I guess you are using `js_include`. `js_include` just loads a provided file into the VM runtime. `js_content` looks for a `validate_api_key` function...

Hi @gnomeby, Is it still an issue for you?

Hi @ap-wtioit, Thank you for the report, will look into it.

@calvin2021y Why not use "[syslog](https://nginx.org/en/docs/http/ngx_http_log_module.html)" feature of nginx?

@calvin2021y > Is there a way to send udp packet from njs ? unfortunately, there is none.

@lancedockins The standard way to implement the logic of access filter is to use `/auth_request` with `js_content`. Take a look at following [examples](https://github.com/nginx/njs-examples#setting-nginx-var-as-a-result-of-async-operation).

@lancedockins >A js_access_filter directive that has access to the request body would solve this there is also an issue with having request body in access phase. By nginx design, access...

Hi @shankerwangmiao, We do not think it is good idea to allow any sends in preread phase. Preread phase is designed to have no side effects on the stream (think...

@shankerwangmiao >But sometimes it is needed to do a simple handshake to read meaningful information out before deciding which upstream backend can be used. That's why I'm suggesting this feature....