...
A basic example with config to use serve opEvents over SSL and proxy the Webscockets, if you are using the Opmantek Provided VM this will be incompatible with the provided 04omk-proxy.conf.
Code Block |
---|
<VirtualHost *:443> ServerName example.opmantek.com SSLEngine on SSLProxyEngine On ProxyRequests Off SSLCertificateFile /etc/ssl/certs/example/cert.pem SSLCertificateKeyFile /etc/ssl/certs/example/privkey.pem SSLCertificateChainFile /etc/ssl/certs/example/fullchain.pem RequestHeader set X-Forwarded-Proto "https" # Proxy the websocket connection ProxyPassMatch ^/(en/omk/opEvents/ws/events)$ ws://localhost:8042/$1 # Proxy the rest of the application ProxyPass / http://localhost:8042/ ProxyPassReverse / http://localhost:8042/ </VirtualHost> |
...