Voice_Assistant.AXERA / scripts /run_server.sh
HY-2012's picture
First commit
51df38c verified
Raw
History Blame Contribute Delete
401 Bytes
#!/usr/bin/env bash
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