Web based viewer for the Bladenight App
k2.html
Mockup for the offical pagefullscreen.html
HTML Containermbn-map.css
Stylezmbn-map.js
Client implementationleaflet.css
Map stylesleaflet.js
Map libraryautobahn.js
WAMP 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.allowInsecureFromHTTPS
totrue
(decreases global security!) - Access the page
- Server https://github.com/bladenight/bladenightapp-common/
- Autobahn https://crossbar.io/autobahn/
- Leaflet https://leafletjs.com/
- Fullscreen https://github.com/Leaflet/Leaflet.fullscreen
- Location https://github.com/domoritz/leaflet-locatecontrol
- Transport https://github.com/openstreetmap/leaflet-osm