Following a previous thread.
While increasing my skills on HS3 script (I think about a year ago), I was struggling with memory leaks which overcame all my attempts to obtain a stable solid system let's say 2 weeks (my longest holliday) without being necessary to return to HS3 server management (I think its better now with last beta's). In my quest to memory leaks, garbage collector, the release of the objects,... I found that the problem was related to the behavior of the .NET environment in HS3.
At this point came the idea of keeping HS3 to its native work, event management, and other technological ZWave links, ... and transfer scripts to a more reliable engine. Since I had grown Javascript in my pages, I started working with nodejs. At that time, the HS3 guys released a gold coin aka JSON API. Bingo!
The last piece of the puzzle was a front-end server to cope securely with the World Wild Web since as you know, all ips and ports are chased at random or by systematic hunting
. This front-end server would of course serve HS3 and nodejs applications.
In the following messages, I will describe the general scheme and the centerpiece of the configuration of nginx which is a file named "nginx.conf"
Remember, I am not involved in computers, or not even working in the sector. All this is stuf without government guarantee, its all your responsibility to put your system down if you make some attempts, even after my example as tips. This is not advise this is experience, the one stuff that do not transfer between people. I am sure my system is not perfect, hides holes, thus enhanceme"nt and criticism are very welcome.
And last I get no responsabilities for headache you catch reading my english.
Stateof the art : today I am running fine with a front end NGINX server, serving HS3, JSON HS3 API, my own express server api. Basic auth is fully implemented, as for SSL i did succeed with a self signed certificate but not with an external certificate provider...
My server is a W10 system on a cheap laptop. A few watts consumption, an included battery, access with microsoft distant connexion.
Node js, Nginx at their last versions.
Coming with nodejs and Nginx you get fancy addons like PM2 that I use for processes management, monitoring, relaunch of faulty process, easy logging of server errors...
And tons of scripts to help, on the central bank of the system called NPM, and much more for people who get time. I lack!
Let's go
Jean
While increasing my skills on HS3 script (I think about a year ago), I was struggling with memory leaks which overcame all my attempts to obtain a stable solid system let's say 2 weeks (my longest holliday) without being necessary to return to HS3 server management (I think its better now with last beta's). In my quest to memory leaks, garbage collector, the release of the objects,... I found that the problem was related to the behavior of the .NET environment in HS3.
At this point came the idea of keeping HS3 to its native work, event management, and other technological ZWave links, ... and transfer scripts to a more reliable engine. Since I had grown Javascript in my pages, I started working with nodejs. At that time, the HS3 guys released a gold coin aka JSON API. Bingo!
The last piece of the puzzle was a front-end server to cope securely with the World Wild Web since as you know, all ips and ports are chased at random or by systematic hunting

In the following messages, I will describe the general scheme and the centerpiece of the configuration of nginx which is a file named "nginx.conf"
Remember, I am not involved in computers, or not even working in the sector. All this is stuf without government guarantee, its all your responsibility to put your system down if you make some attempts, even after my example as tips. This is not advise this is experience, the one stuff that do not transfer between people. I am sure my system is not perfect, hides holes, thus enhanceme"nt and criticism are very welcome.
And last I get no responsabilities for headache you catch reading my english.

Stateof the art : today I am running fine with a front end NGINX server, serving HS3, JSON HS3 API, my own express server api. Basic auth is fully implemented, as for SSL i did succeed with a self signed certificate but not with an external certificate provider...
My server is a W10 system on a cheap laptop. A few watts consumption, an included battery, access with microsoft distant connexion.
Node js, Nginx at their last versions.
Coming with nodejs and Nginx you get fancy addons like PM2 that I use for processes management, monitoring, relaunch of faulty process, easy logging of server errors...
And tons of scripts to help, on the central bank of the system called NPM, and much more for people who get time. I lack!
Let's go

Jean
Comment