fix: Python server dependency resolution and Docker host validation (#333)

* fix(say-server): add --index flag to uv run for PyPI resolution

The pocket-tts dependency wasn't resolving without explicit --index flag
when invoked via npm scripts.

* fix(qr-server): allow Docker bridge IP in transport security

Add 172.17.0.1:* to allowed_hosts to fix 421 Misdirected Request errors
when the server is accessed from Docker containers.
This commit is contained in:
Olivier Chafik 2026-01-23 19:33:59 +00:00 • committed by GitHub
commit ee5d3f85ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,8 +10,8 @@
},
"license": "MIT",
"scripts": {
"start": "uv run server.py",
"dev": "uv run server.py",
"start": "uv run --index https://pypi.org/simple server.py",
"dev": "uv run --index https://pypi.org/simple server.py",
"build": "echo 'No build step needed for Python server'"
},
"dependencies": {