File size: 401 Bytes
51df38c
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
#!/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