How to Properly Set Up a Proxy in Node-RED? Need Help with Node-RED Set Proxy Configuration!

14 Replies, 1718 Views

Hey everyone!

So, I’ve been trying to figure out how to Node-RED set proxy properly, and honestly, it’s been a bit of a headache. 😅 I’ve got this setup where I need to route some stuff through a proxy, but I’m not entirely sure if I’m doing it right.

I’ve seen some threads about Node-RED set proxy configs, but they’re either outdated or way too technical for my brain to process rn. Like, do I just tweak the settings.js file, or is there a better way?

Also, does anyone know if there’s a specific node or plugin that makes this easier? Or am I stuck manually configuring everything?

Any tips or step-by-step guides would be *super* appreciated. I’m kinda stuck here, and I don’t wanna mess up my flow.

Thanks in advance, y’all! 🙏
Hey! I feel your pain with the Node-RED set proxy thing. It can be a bit confusing at first.

I’d recommend checking out the `http-request` node from the Node-RED library. It has built-in proxy support, and you can configure it directly in the node settings. No need to mess with the settings.js file unless you’re doing something super custom.

Also, this guide helped me a ton: [Node-RED Proxy Setup Guide](https://example.com). It’s pretty straightforward and walks you through the steps. Hope it helps!
Yo! Been there, done that. For Node-RED set proxy, I usually just tweak the settings.js file. It’s not as scary as it sounds, promise!

Just add this snippet under the `httpProxy` section:
```javascript
httpProxy: 'http://your-proxy-url:port'
```
Save it, restart Node-RED, and you’re golden. If you’re still stuck, maybe try the `node-red-contrib-proxy` plugin? It’s a lifesaver for quick setups.
Honestly, I gave up on manually configuring Node-RED set proxy and just used a Docker container. It’s way easier to handle proxy settings there.

If you’re open to it, check out the official Node-RED Docker image. You can pass the proxy settings as environment variables, and it just works. No headaches with config files.

Here’s a quick example:
```bash
docker run -e http_proxy=http://your-proxy-url:port nodered/node-red
```
Game changer for me!
Hey! I had the same issue last week. For Node-RED set proxy, I found that using the `node-red-contrib-http-request` node made things way simpler.

You can configure the proxy directly in the node, and it works like a charm. No need to dive into the settings.js file unless you’re doing something super specific.

Also, this forum thread has some good tips: [Node-RED Proxy Tips](https://exampleforum.com). Worth a look!
Wow, thanks so much, everyone! 🙌 This is super helpful. I tried the `node-red-contrib-http-request` node, and it worked like a charm. Didn’t even have to touch the settings.js file, which is a huge relief.

I also checked out the Docker option, and it seems like a solid backup plan if I ever need to scale things up.

Quick follow-up: Does anyone know if there’s a way to test if the proxy is actually working correctly? Like, a node or tool to verify the connection? Just wanna make sure everything’s running smoothly.

Thanks again, y’all are the best! 🚀
Node-RED set proxy can be a bit of a pain, but once you get it, it’s smooth sailing. I usually just edit the settings.js file and add the proxy config there.

Here’s what I use:
```javascript
httpProxy: 'http://your-proxy-url:port',
httpsProxy: 'https://your-proxy-url:port'
```
Restart Node-RED, and you should be good to go. If you’re still stuck, maybe try the `node-red-contrib-proxy` plugin? It’s pretty handy.
Hey! I’m no expert, but I managed to get Node-RED set proxy working by using the `node-red-contrib-http-request` node. It’s super easy to configure, and you don’t have to mess with the settings.js file.

Also, this tutorial helped me a lot: [Node-RED Proxy Tutorial](https://exampletutorial.com). It’s step-by-step and really beginner-friendly. Good luck!



Users browsing this thread: 1 Guest(s)