Setting Up Nginx Proxy with FactoryStudio in Ubuntu

Hi!

I’m trying to configure an Nginx Proxy to communicate with the project in FactoryStudio. VM is in the cloud. I get timeout when trying to connect with Nginx. I’m using Nginx because I want to use my domain name and SSL communication when loading a dashboard, but let me know if there’s an alternative.

This is what I see in my set up:

  • I can load “http://159.65.229.31:3101/html5/” and on port 3111 as well. I just see certificate warning. You can hit those sites as well, if you need to.

  • I’m getting the following in Nginx logs:

*2025/05/25 22:06:16 [error] 1219685#1219685: 3719 upstream timed out (110: Unknown error) while reading response header from upstream, client: 10.10.0.2, server: commonpicturestudio. com, request: “GET / HTTP/1.1”, upstream: “http:// 127.0.0.1:3101/html5/”, host: “commonpicturestudio. com”

  • However, if I try “curl http:// 127.0.0.1:3101/html5/”, I can load the site fine.Which tells me that there’s something missing my Nginx configuration file so I can make the connection through it.

Nginx Configuration:

All I can think of is that I’m missing something in the Headers to send to FrameworX.

  • are there any requirements regarding the headers information?
  • Is there anything else I should consider when making a connection to http:// 127.0.0.1:3101/html5/ via proxy?
  • Also, are there logs I could check to see what’s preventing the connection on the FrameworX side, potentially?

Note: I put some spaces in some web address, so they wouldn’t be identified as link. I have a limit of only one link and one image per post.

Thanks in advanced!
Abel

I was able to resolve the timeout issue by adding the following to the Nginx configuration:

proxy_set_header Host $host;

proxy_set_header X-Real-IP $remote_addr;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

However, now I’m getting “Runtime could not be found!” (see below). I’m looking into it, but let me know if there are any comments or suggestions.

Thanks
Abel