Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Enable Realtime events for Ubuntu 20.04 and over with Nginx

We now support Nginx 1.18.0 and above and this can be used if you wish to switch to nginx over apache regardless of your linux distribution.

This configuration is also to ensure you can proxy websocket connections for ubuntu 20.04 and over for ubuntu distributions as they don't , Ubuntu does not support the required apache2 version needed for opevents realtime gui .We now support Nginx 1.18.0 and above and this can be used so if you wish to switch to nginx over apache regardless of your linux distributionenable this feature and use Ubuntu you will need to follow these steps.

Code Block
sudo apt-get install nginx
sudo apt install fcgiwrap

...

Settings which you will need to modify from the example

NameValueExampleApache Docs
ServerNameFQDN of the server which users will refer to it bymonit-prod.opmantek.comhttps://httpd.apache.org/docs/2.4/vhosts/name-based.html
SSLCertificateKeyFileServer PEM-encoded private key file/etc/ssl/certs/example/privkey.pemhttps://httpd.apache.org/docs/current/mod/mod_ssl.html#sslcertificatekeyfile
SSLCertificateChainFile(Before apache 2.4.8) File of PEM-encoded Server CA Certificates/etc/ssl/certs/example/fullchain.pemhttps://httpd.apache.org/docs/current/mod/mod_ssl.html#sslcertificatekeyfile
fcgiwrap.socketallows you to set up a socket for communication between a web server and fcgiwrap to handle FastCGI requests /var/run/fcgiwrap.socket


Next create two configuration files in the main nginx directory: /etc/nginx. One of these configs will be called common_proxy-headers and will contain:

...