Open gbomacfly opened 6 years ago
Hey @gbomacfly !
One thing I would check is if you can open your (debug) network tab in your browser to see if you see any errors in console or the network tab and report them here.
If you could shoot a screenshot of what you see and then do you have active leases/devices being picked up by Glass? Let me know
Hi @Akkadius first, thanks for your help. In the network tab seems all ok. Bit inthe console tab are many errors about
Uncaught ReferenceError: socket is not defined
and
Mixed Content: The page at 'https://sub.domain.de/' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://sub.domain.de:8080/'. This request has been blocked; this endpoint must be available over WSS.
OK, my Apache2 serves the page via a proxy, I think there is the error
root > /opt/glass-isc-dhcp # cat /etc/apache2/sites-enabled/05_sub.domain.de.conf
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName sub.domain.de
ServerAdmin macfly@german-bash.org
DocumentRoot /var/www/dns/htdocs
ErrorLog /var/www/dns/logs/error.log
CustomLog /var/www/dns/logs/access.log combined
SSLCertificateFile /etc/letsencrypt/live/domain.de/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/domain.de/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
ProxyVia Off
ProxyPreserveHost On
ProxyRequests off
ProxyPass / http://127.0.0.1:3000/
ProxyPassReverse / http://127.0.0.1:3000/
<Proxy *>
AuthType Basic
AuthName "Willkommen bei ISC DHCP!"
AuthUserFile /var/www/htpasswd
Require valid-user
Order deny,allow
Allow from all
</Proxy>
</VirtualHost>
</IfModule>
I'll go searching about WSS...
Yeah the websocket connection for realtime data streaming operates on 8080, this is recently configurable. It looks like if you want to proxy websockets this is doable as well with an apache extension
https://httpd.apache.org/docs/2.4/mod/mod_proxy_wstunnel.html
Thanks for your help!
OK, thats a new terrain for me. I tried now:
a2enmod proxy_wstunnel
Then I added the following lines in the config:
ProxyPass "/" "ws://sub.domain.de/"
and restarted apache.
The Problem remains the same, but the ws-error is gone.
Log shows me:
Uncaught ReferenceError: socket is not defined at websockets_subscribe_event (glass-websockets.js:11) at handle_websocket_subscription_navigation (glass-core.js:112) at HTMLDocument.
(glass-core.js:70) at HTMLDocument.dispatch (jquery.min.js:3) at HTMLDocument.r.handle (jquery.min.js:3) at Object.trigger (jquery.min.js:3) at HTMLDocument. (jquery.min.js:3) at Function.each (jquery.min.js:2) at n.fn.init.each (jquery.min.js:2) at n.fn.init.trigger (jquery.min.js:3) and Uncaught ReferenceError: socket is not defined at check_websocket_connection (glass-websockets.js:4) at glass-websockets.js:66
OK, there was a shield in the Chrome adressbar, asking for insecure connections. I accepted, but it still gives me errors:
WebSocket connection to 'ws://subdomain.domain.de:8080/' failed: Error in connection establishment: net::ERR_CONNECTION_CLOSED
Mixed Content: The page at '
' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws: /'. This endpoint should be available via WSS. Insecure access is deprecated. Connecting to a non-secure WebSocket server from a secure origin is deprecated.
I have this line in my apacheconfig, but I think this is not correct:
ProxyPass "/" ws://subdomain.domain.de:8080
I should switch to wss, right? How can I add this feature?
Hello,
I followed your installation instructions, except for nodejs, because I had this already:
Everything went fine, the files in the options are the correct ones (double checked), but in the webpanel everything is at value zero. my subnet is shown correctly, but there is nothing in the statistics (No data available in table)
I'm on Debian latest (Linux gboslave 4.9.0-7-amd64 #1 SMP Debian 4.9.110-3+deb9u2 (2018-08-13) x86_64 GNU/Linux)
Have I done something wrong? Thank you in advance!
Here are the configuration files and more info:
I'm starting like: