Support Web Products
Web based products are "running" in a standard browser. All currently from their manufacturers supported browsers can be used. No browser extendions are needed.
The backend parts require a web browser running php and web sockets.
The web socket is tunneled over the port 80 browser connection through the web server to a process which translates the JSON requests to OPC UA (Web SCADA), the configuration process (Web Configuration) and the historian API.
The install packets for the Tauri S and L are containing the complete installation if the extended package is used.
Overview: Web Server Basics, Web Server Certificates, Web Server Configuration Apache2, Web Server Configuration Ligtttpd, Web Socket.
Answer:
We did test the server parts with the Apache 2 server and the lightpd on Linux. Other servers will run also as other operating systems as Windows.
mod-php
. All php versions starting from version 6 up to 8 can be used.modules bz2 zip zlib json
.Answer:
From the sight of the web sockets and all other logic there is no difference between the unencrypted http and the encrypted https. But one job remains using encrypted communication - obtaining a valid certificate which is accepted by standard browsers. An easily and cost free option in 2023 is using certificates from let's encrypt. Check there for details.
In a servers certificate the domain name or the ip address is the reference. So changing them invalidates the certificate.
Some browsers can accept self signed certificates with some clicks, but this is becoming seldom.
Using https the mod-https module need to be installed with your systems packet manager.
Most browsers are supporting already http in 2023, but more and more details are unavailable if non encrypted connections are used. So on the long run encrypted connections using certificates are needed. Beware that standard browsers will require an certificate which is not older than one year (this is valid until 2022). So you need actualize the servers certificate yearly or more frequently.
Answer:
Now the variuos products need different details.
LoadModule proxy_module [ModuleDirectory]/mod_proxy.so
LoadModule proxy_wstunnel_module [ModuleDirectory]/mod_proxy_wstunnel.so
ProxyPass "/pe_webscada/" "ws://localhost:8081/"
LoadModule proxy_module [ModuleDirectory]/mod_proxy.so
LoadModule proxy_wstunnel_module [ModuleDirectory]/mod_proxy_wstunnel.so
ProxyPass "/pe_config/" "ws://localhost:8082/"
The multiple websocket ports are allowing runing all web services in parallel.
The historian API is intended using in private applications. So there is no web server application here. The web SCADA has a historian trend element which works over the websocket and OPC UA has a similar functionality.
Answer:
Look up the following configuration items of the server, usually in /etc/lighttpd/lighttpd.confserver.modules += ( "mod_proxy" )
$HTTP["url"] =~ "^/pe_webscada" {
proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => "8081" ) ) )
proxy.header = ( "upgrade" => "enable" )
}
server.modules += ( "mod_proxy" )
The historian API is intended using in private applications. So there is no web server application here. The web SCADA has a historian trend element which works over the websocket and OPC UA has a similar functionality.
Answer:
The JSON content used in the web sockets are documented here
This can be used for neutral server applications.