Writing /var/lib/dokuwiki/wiki.project-insanity.org/data/meta/projects/web/wewheim.meta failed
projects:web:wewheim
Differences
This shows you the differences between two versions of the page.
| projects:web:wewheim [2020/11/09 19:50] – old revision restored (2018/06/18 16:00) 161.97.92.73 | projects:web:wewheim [2021/10/31 10:42] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | * Port forwardings für noVNC websocket in FritzBox eintragen | ||
| + | * status.wew-heim.de (eingerichtet von MadWays) geht auf DynDns fritzbox-heim.no-ip.org | ||
| + | * http:// | ||
| + | ===== Requirements ===== | ||
| + | * Ports must be forwared: 22, 443, 80, 6080, 6081, 6082 | ||
| + | ===== Server setup ===== | ||
| + | Append to | ||
| + | <code bash / | ||
| + | deb http:// | ||
| + | </ | ||
| + | <code bash> | ||
| + | sudo apt-get install certbot -t sid | ||
| + | | ||
| + | < | ||
| + | <code bash / | ||
| + | auto eth0 | ||
| + | iface eth0 inet static | ||
| + | address 192.168.1.2 | ||
| + | netmask 255.255.255.0 | ||
| + | gateway 192.168.1.254 | ||
| + | </ | ||
| + | <code bash> | ||
| + | useradd websockify | ||
| + | sudo certbot certonly --webroot -w /var/www -d status.wew-heim.de | ||
| + | chmod -R g+r+x / | ||
| + | chown -R root: | ||
| + | sudo cp projects/ | ||
| + | </ | ||
| + | Append last section | ||
| + | <code bash / | ||
| + | pre_hook = systemctl stop nginx websockify@motor1 websockify@motor2 websockify@pumpensteuerung | ||
| + | post_hook = systemctl start nginx websockify@motor1 websockify@motor2 websockify@pumpensteuerung | ||
| + | </ | ||
| + | <code bash / | ||
| + | Host=" | ||
| + | Port=" | ||
| + | ListeningPort=" | ||
| + | CertPath="/ | ||
| + | KeyPath="/ | ||
| + | </ | ||
| + | <code bash / | ||
| + | Host=" | ||
| + | Port=" | ||
| + | ListeningPort=" | ||
| + | CertPath="/ | ||
| + | KeyPath="/ | ||
| + | </ | ||
| + | <code bash / | ||
| + | Host=" | ||
| + | Port=" | ||
| + | ListeningPort=" | ||
| + | CertPath="/ | ||
| + | KeyPath="/ | ||
| + | </ | ||
| + | < | ||
| + | | ||
| + | | ||
| + | <code bash / | ||
| + | # redirect to https | ||
| + | server { | ||
| + | listen 80; | ||
| + | listen [::]:80; | ||
| + | server_name status.wew-heim.de; | ||
| + | return 301 https:// | ||
| + | } | ||
| + | |||
| + | server { | ||
| + | listen 443 ssl; | ||
| + | listen [::]:443 ssl; | ||
| + | ssl_certificate / | ||
| + | ssl_certificate_key / | ||
| + | ssl_trusted_certificate / | ||
| + | ssl_session_timeout 1d; | ||
| + | ssl_session_cache shared: | ||
| + | ssl_session_tickets off; | ||
| + | ssl_protocols TLSv1.2; | ||
| + | ssl_ciphers ' | ||
| + | ssl_prefer_server_ciphers on; | ||
| + | add_header Strict-Transport-Security max-age=15768000; | ||
| + | ssl_stapling on; | ||
| + | ssl_stapling_verify on; | ||
| + | server_name status.wew-heim.de; | ||
| + | |||
| + | root /var/www; | ||
| + | |||
| + | location / { | ||
| + | auth_basic | ||
| + | auth_basic_user_file | ||
| + | try_files $uri $uri/ =404; | ||
| + | } | ||
| + | |||
| + | location ^~ / | ||
| + | allow all; | ||
| + | #alias / | ||
| + | default_type " | ||
| + | try_files $uri =404; | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | <code bash> | ||
| + | sudo ln -s / | ||
| + | sudo systemctl restart nginx | ||
| + | sudo htpasswd -c / | ||
| + | </ | ||
| + | <code bash / | ||
| + | [...] | ||
| + | UserParameter=debiansecurityupdates,/ | ||
| + | UserParameter=hdd.smart[*], | ||
| + | UserParameter=hdd.smart.selftest[*], | ||
| + | Server=5.9.99.52 | ||
| + | </ | ||
| + | <code json / | ||
| + | { | ||
| + | " | ||
| + | "Motor 1": { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | "Motor 2": { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | = Projektdateien = | ||
| + | * [[File: | ||
| + | * [[File: | ||
| + | |||
| + | [[Category: | ||
