| set -e | |
| cd "$(dirname "$0")/.." | |
| # Default to HTTPS so remote browsers can access the microphone. | |
| # The first run auto-generates key.pem / cert.pem via openssl. | |
| HOST="${1:-$(hostname -I 2>/dev/null | awk '{print $1}')}" | |
| HOST="${HOST:-0.0.0.0}" | |
| echo "Starting HTTPS server at https://${HOST}:8008" | |
| python3 app.py --config config/board_config.yaml --host "${HOST}" --port 8008 --ssl | |