From 976cb82e2f9184f35097363df5072a0da5611cf9 Mon Sep 17 00:00:00 2001 From: Atsushi Morimoto <74th.tech@gmail.com> Date: Sat, 7 Mar 2026 15:22:48 +0900 Subject: [PATCH 1/2] create_voicevox_client: use environment variable for VoiceVox URL --- stackchan_server/ws_proxy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stackchan_server/ws_proxy.py b/stackchan_server/ws_proxy.py index 5b91482..f05f197 100644 --- a/stackchan_server/ws_proxy.py +++ b/stackchan_server/ws_proxy.py @@ -67,7 +67,8 @@ class _WsMsgType(IntEnum): def create_voicevox_client() -> VVClient: - return VVClient(base_uri="http://localhost:50021") + voicevox_url = os.getenv("STACKCHAN_VOICEVOX_URL", "http://localhost:50021") + return VVClient(base_uri=voicevox_url) class WsProxy: From f26fd38b2d559ea856824a46ef34f3c9beeb6794 Mon Sep 17 00:00:00 2001 From: Atsushi Morimoto <74th.tech@gmail.com> Date: Sat, 7 Mar 2026 21:39:34 +0900 Subject: [PATCH 2/2] fix: ensure recordings directory is created when debugging is enabled --- stackchan_server/ws_proxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stackchan_server/ws_proxy.py b/stackchan_server/ws_proxy.py index f05f197..8bda2f0 100644 --- a/stackchan_server/ws_proxy.py +++ b/stackchan_server/ws_proxy.py @@ -20,7 +20,6 @@ _BASE_DIR = Path(__file__).resolve().parent _RECORDINGS_DIR = _BASE_DIR / "recordings" -_RECORDINGS_DIR.mkdir(parents=True, exist_ok=True) _WS_HEADER_FMT = "