mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
Adds a multi-stage Dockerfile (Rust connector + gateway + web build) and docker-compose.yml for running the whole stack as a single container behind a reverse proxy; the gateway now serves the built web app and the WebSocket endpoint (/ws) from one port, and the frontend derives its gateway URL from window.location in production instead of a hardcoded localhost address. Also guards all navigator.mediaDevices usage against being undefined, which happens when the page is loaded over plain HTTP on a non-localhost address (not a secure context) - previously this crashed the whole React app on mount instead of just disabling the affected voice features.
9 lines
78 B
Plaintext
9 lines
78 B
Plaintext
**/node_modules
|
|
**/dist
|
|
**/target
|
|
tsclientlib/.git
|
|
.git
|
|
*.log
|
|
.env
|
|
.env.local
|