- Added SSL configuration to the backend, including self-signed certificate generation and management. - Updated `setup_myp.sh` to create SSL certificates during installation. - Enhanced `app.py` to support SSL context for secure communication. - Introduced a new SSL management menu in the setup script for easier certificate handling. - Updated frontend API calls to use HTTPS for secure data transmission. - Implemented kiosk mode features, including automatic browser launch with SSL support. - Improved documentation in `SUMMARY.md` to reflect new features and network topology changes.
24 lines
766 B
Bash
Executable File
24 lines
766 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Bildschirm-Blanking verhindern
|
|
xset s off
|
|
xset s noblank
|
|
xset -dpms
|
|
|
|
# Mauszeiger ausblenden
|
|
unclutter -idle 0.5 -root &
|
|
|
|
# Chromium-Crash-Dialoge unterdrücken
|
|
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' \
|
|
"$HOME/.config/chromium/Default/Preferences" 2>/dev/null || true
|
|
sed -i 's/"exit_type":"Crashed"/"exit_type":"Normal"/' \
|
|
"$HOME/.config/chromium/Default/Preferences" 2>/dev/null || true
|
|
|
|
# Hostname und IP ermitteln
|
|
HOSTNAME=$(hostname -f)
|
|
IP_ADDRESS=$(hostname -I | awk '{print $1}')
|
|
|
|
# Browser starten mit SSL-Warnung deaktiviert
|
|
chromium-browser --kiosk --noerrdialogs --disable-infobars \
|
|
--window-position=0,0 --ignore-certificate-errors \
|
|
--app=https://${IP_ADDRESS}:5000/ & |