Поддержка веб -продуктов
Веб -продукты - это "running " в стандартном браузере.
Бэкэнд -детали требуют веб -браузера под управлением PHP и веб -разъемами.
Веб -розетка туннелируется над подключением браузера порта 80 через веб -сервер к процессу, который переводит запросы JSON на OPC UA (Web SCADA), процесс конфигурации (веб -конфигурация) и API Historian.
Установленные пакеты для таури и L содержат полную установку, если используется расширенный пакет.
Обзор: Web Server Basics, Web Server Certificates, Web Server Configuration Apache2, Web Server Configuration Ligtttpd, Web Socket.
Ответ:
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.Ответ:
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.
Ответ:
Now the variuos products need different details.
LoadModule proxy_module [ModuleDirectory]/mod_proxy.soLoadModule proxy_wstunnel_module [ModuleDirectory]/mod_proxy_wstunnel.soProxyPass "/pe_webscada/" "ws://localhost:8081/"LoadModule proxy_module [ModuleDirectory]/mod_proxy.soLoadModule proxy_wstunnel_module [ModuleDirectory]/mod_proxy_wstunnel.soProxyPass "/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.
Ответ:
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.
Ответ:
The JSON content used in the web sockets are documented here
This can be used for neutral server applications.