OpenSprinkler Forums OpenSprinkler Unified Firmware Reverse Proxy Settings with multiple OS controllers

  • This topic has 7 replies, 3 voices, and was last updated 5 years ago by Ray.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #45681

    Jason
    Participant

    Hi All,

    I have been trying for some time to get reverse proxy to work for 3 OS controllers. All have different IPs plus different port numbers. The issue that I am running into is that the first controller I hit, say domain.com/homeos is the only controller that I can get to after that even if I use domain.com/shopos. If I use the external ip + port that works as well as internal ip + port also domain.com:port#. The only way I can’t get it work is with domain.com/homeos.

    I have tried this with nginx and Caddy.

    Is the software designed to be used in a multiple controller environment with reverse proxy? Anyone have a setup like this working?

    Thanks.

    #45697

    Ray
    Keymaster

    I am not familiar with reverse proxy, so I don’t have any insights here. How did you set up reverse proxy? For example, is domain.com you are referring to a server somewhere on the Internet? Or is it your local server at home?

    #45844

    Jason
    Participant

    Hi Ray,

    Sorry did not see a response to my question.

    I have a reverse proxy setup on my home server. domain.com is a generic reference to my personal domain. I have it setup so that when I type in http://www.domain.com/homeos it will try to hit the local ip address:port #. I have tried with nginx and now caddy. I think it is to do something with OS and how it process requests and perhaps the password that is sent? Networking is not my forte but I have gotten other programs setup and working with reverse proxy.

    If I can provide logs or anything let me know.

    Jason

    #45845

    Jason
    Participant

    Sorry forgot to mention that I can hit each of OS controllers by port # so http://www.domain.com:8119 for example works but just not by name ie http://www.domain.com/homeos.

    #45874

    Ray
    Keymaster

    I think you missed my response. Here is what I asked:
    I am not familiar with reverse proxy, so I don’t have any insights here. How did you set up reverse proxy? For example, is domain.com you are referring to a server somewhere on the Internet? Or is it your local server at home?

    #45886

    Jason
    Participant

    domain.com is a generic reference to my own domain http://www.jason.com for example that I have to access on my local network applications.

    I am using Caddy Server as software that serves as my webserver. So instead of having to type in the external ip address I can type in my domain name for example http://www.jason.com/opensprinklerhome and that will translate that to my external IP address:port number internally to reach my home opensprinkler on 192.168.1.119:6119.

    I hope that makes more sense I not sure if I am explaining this technically correct.

    #45912

    Predrag
    Participant

    I have similar setup as yours, but I use nginx as reverse proxy. It works without issues.

    #46112

    Ray
    Keymaster

    @Jason: sorry that I couldn’t be of much help here: I don’t know how reverse proxy works. But as far as the firmware goes, I don’t think anything in the firmware prevents it from being used in a multi-controller environment. Each instance has its own IP and port number, and the firmware does not by itself talk to other controllers, so I don’t see anything here that prevents multiple controllers being used together.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.

OpenSprinkler Forums OpenSprinkler Unified Firmware Reverse Proxy Settings with multiple OS controllers