Upload file over https without login

Hi, I'm struggling with this issue:
I have node red behind nginix remotely reachable via https, and secured with username and password.
I've created an endpoint using http in and http response nodes as simple as it can be.
What I need is to upload a file via post request. Everything works great but of course every time it always required to insert username and password. There is a way to bypass it? I don't know, maybe sending them via url (even if I don't like it that much), or others better solutions?
Thanks a lot

[{"id":"601732b5.b6616c","type":"http response","z":"665bb562.ac5e7c","name":"","x":1110,"y":1580,"wires":[]},{"id":"cb764046.da4bd","type":"http in","z":"665bb562.ac5e7c","name":"","url":"/test","method":"post","upload":true,"swaggerDoc":"","x":300,"y":1580,"wires":[["d3a6333c.8ad15"]]},{"id":"86ff6e5b.b592e","type":"file","z":"665bb562.ac5e7c","name":"","filename":"/home/pi/test.pdf","appendNewline":false,"createDir":true,"overwriteFile":"true","encoding":"none","x":880,"y":1640,"wires":[[]]},{"id":"d3a6333c.8ad15","type":"change","z":"665bb562.ac5e7c","name":"","rules":[{"t":"move","p":"req.files[0].buffer","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":1580,"wires":[["86ff6e5b.b592e","601732b5.b6616c"]]}]

Why not just create a new https endpoint in NGINX and don't apply the uid/pw requirement to it?

Hi, I'm just starting using nginx. Why not, thanks for the advice. Can you give some tip, guide that can help me?

Try nginx configure 2nd endpoint - Google Search

Thanks Julian., No I meant I have never created an endpoint and for this reason I wanted to use the built-in node, but following I'm following your suggestion as I understand it's the only way to menage my need.
Thanks

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.