Web based viewer for the Bladenight App
k2.htmlMockup for the offical pagefullscreen.htmlHTML Containermbn-map.cssStylezmbn-map.jsClient implementationleaflet.cssMap stylesleaflet.jsMap libraryautobahn.jsWAMP 1.0 library
The Bladenight server uses either self signed certificates (not trusted by default), or non-encrypted communication.
If you want to use TLS, then you can add a reverse proxy on the server to encrypt the communication. With Apache, it would look like this:
<VirtualHost *:14443>
ServerName ...
ServerAdmin ...
ErrorLog ...
CustomLog ...
SSLEngine on
SSLCertificateFile ...
SSLCertificateKeyFile ...
RewriteEngine on
RewriteCond %{HTTP:UPGRADE} websocket [NC]
RewriteCond %{HTTP:CONNECTION} upgrade [NC]
RewriteRule .* ws://localhost:12345%{REQUEST_URI} [P]
ProxyPass / http://localhost:12345/
ProxyPassReverse / http://localhost:12345/
ProxyRequests off
</VirtualHost>
If you want to use unencrypted Websocket communication, be aware that Firefox will not initiate a non-TLS websocket connection from an HTTPS page. To change this (not recommended):
- Enter
about:config - Set
network.websocket.allowInsecureFromHTTPStotrue(decreases global security!) - Access the page