linux  RPi  smarthome

Conbee⌶⌶ - installation

Installation des Conbee⌶⌶.
Documentation

Installation

sudo gpasswd -a $USER dialout
sudo reboot

wget -qO- https://phoscon.de/apt/deconz.pub.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/deconz-keyring.gpg >/dev/null
sudo sh -c "echo 'deb http://phoscon.de/apt/deconz generic main' > /etc/apt/sources.list.d/deconz.list"
sudo apt update && sudo apt install deconz

sudo systemctl enable deconz
sudo nano /etc/systemd/system/multi-user.target.wants/deconz.service
    --http-port= auf Port 8008
sudo systemctl daemon-reload
sudo systemctl restart deconz

ufw 

Falls  von anderem Host erreichbar sein soll, sonst über reverse proxy.

# Conbee2 HTTP
sudo ufw allow 8008
#muss Port 8088 freigeben werden?! Da Pollt im Chrome-Inspect immer ein wss:// drauf.

reverse proxy

Klappert irgendwie noch nicht...

sudo nano /etc/apache2/sites-available/000-default-ssl.conf

<VirtualHost *:443>
        ServerAdmin webmaster@localhost
        ServerName conbee.l337.l11

        SSLProxyEngine On
        SSLProxyVerify none
        SSLProxyCheckPeerCN off
        SSLProxyCheckPeerName off
        SSLProxyCheckPeerExpire off
        ProxyPass / http://127.0.0.1:8008/
        ProxyPassReverse / http://127.0.0.1:8008/

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        SSLEngine on
        SSLCertificateFile /etc/ssl/certs/apache.crt
        SSLCertificateKeyFile /etc/ssl/private/apache.key

        <FilesMatch "\.(cgi|shtml|phtml|php)$">
                        SSLOptions +StdEnvVars
        </FilesMatch>
        <Directory /usr/lib/cgi-bin>
                        SSLOptions +StdEnvVars
        </Directory>
</VirtualHost>

<VirtualHost *:443>
        ServerAdmin webmaster@localhost
        ServerName www.l337.l11
        ServerAlias l337.l11 *.l337.l11
. . .