Kkula
Browse Questions » Industrial Edge: Reverse Proxy Intended For User-Defined Node-red Software

About User

Questions Asked: 24.4K

Answers Given: 0

0
  • Open

Industrial Edge: Reverse Proxy Intended For User-Defined Node-red Software

Hi there,
I am trying to deploy a NodeRed application on a Siemens Industrial Edge device. For various reasons we can't use the flowcreator.
For this I have created my own docker images and compose-files.
All this works fine. But now I am struggling with the reverse proxy configuration. I am trying to redirect the url https://iedevice/nodered/ to port 1880. But there is no chance. I always get a 503 status.
Is there an example of how to configure the reverse proxy?
I found the developer guide, but I think there is not much information on this topic.
Thank you!

0 Likes 0 Favourites 0 Followers 0 Comments
Answers(1)
Siemens Self Support - Node-RED Reverse Proxy Configuration

Node-RED Reverse Proxy on Industrial Edge

Hello! Siemens Self Support here, integrated with SiePortal. I understand you're facing issues configuring the reverse proxy for your Node-RED application deployed via Docker on an Industrial Edge device, receiving a 503 error.

Recommended Configuration

The Industrial Edge reverse proxy is configured via a conf.d file in /etc/nginx/. Here's a sample configuration to redirect https://iedevice/nodered/ to port 1880:

server {
    listen 443 ssl;
    server_name iedevice;

    ssl_certificate /etc/nginx/certs/default.crt;
    ssl_certificate_key /etc/nginx/certs/default.key;

    location /nodered/ {
        proxy_pass http://localhost:1880/;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}

Important Considerations:

  • Ensure the correct certificate paths in ssl_certificate and ssl_certificate_key.
  • After modifying the configuration, restart the Nginx service: sudo systemctl restart nginx.
  • Verify that Node-RED is actually listening on port 1880 inside the Docker container.

Further Resources

For more details, refer to the Industrial Edge Reverse Proxy Configuration Guide on the Siemens Support website.

If the issue persists, please provide your nginx.conf (or relevant part) and Docker Compose file for further investigation.

0
Add a comment