Hello everyone,
Here is my context:
We would like to use node-red server as an intermediate layer, for accessing private files.
For POC purpose, we added a simple http GET file route under nodered, in order to check and validate the input token from url params. And we read and send back a local file, such as suggested in
https://cookbook.nodered.org/http/serve-a-local-file
The whole mechanism works fine, but to read and send back a file buffer object seems to be slow.
If we need to show contents (video) in a real time conversation, this solution seems inadaptable.
Questions:
- Is there any alternative solutions or mechanisms for facilitating this kind of file download process ?
- I was thinking about using the static folder, since it’s much more faster. But can we add a token validation middleware before access to static folder ? (I've tested the httpNodeMiddleware, but if I understand well, it's only for normal routes)
Thank you very much