OpenSprinkler › Forums › OpenSprinkler Unified Firmware › Reverse Proxy Settings with multiple OS controllers
- This topic has 7 replies, 3 voices, and was last updated 7 years, 8 months ago by Ray.
-
AuthorPosts
-
March 25, 2017 at 10:46 am #45681
JasonParticipantHi 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.
March 26, 2017 at 8:02 pm #45697
RayKeymasterI 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?
April 11, 2017 at 2:43 pm #45844
JasonParticipantHi 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
April 11, 2017 at 2:46 pm #45845
JasonParticipantSorry 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.
April 13, 2017 at 12:06 am #45874
RayKeymasterI 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?April 13, 2017 at 10:19 am #45886
JasonParticipantdomain.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.
April 16, 2017 at 2:21 pm #45912
PredragParticipantI have similar setup as yours, but I use nginx as reverse proxy. It works without issues.
May 4, 2017 at 5:23 pm #46112
RayKeymaster@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.
-
AuthorPosts
- You must be logged in to reply to this topic.
OpenSprinkler › Forums › OpenSprinkler Unified Firmware › Reverse Proxy Settings with multiple OS controllers