diff --git a/xtts/bridge.js b/xtts/bridge.js index 8128192..0c6f8d6 100644 --- a/xtts/bridge.js +++ b/xtts/bridge.js @@ -256,13 +256,13 @@ log(`RVS: ${RVS_HOST}:${RVS_PORT}`); // Warten bis XTTS API erreichbar ist function waitForXTTS(callback, attempts) { if (attempts <= 0) { log("XTTS API nicht erreichbar — starte trotzdem"); callback(); return; } - http.get(`${XTTS_API_URL}/docs`, (res) => { - log("XTTS API erreichbar"); + http.get(`${XTTS_API_URL}/`, (res) => { + log(`XTTS API erreichbar (HTTP ${res.statusCode})`); callback(); }).on("error", () => { log(`XTTS API noch nicht bereit — warte (${attempts} Versuche uebrig)...`); - setTimeout(() => waitForXTTS(callback, attempts - 1), 5000); + setTimeout(() => waitForXTTS(callback, attempts - 1), 10000); // 10s statt 5s (Model laden dauert) }); } -waitForXTTS(() => connectRVS(), 24); // Max 2min warten +waitForXTTS(() => connectRVS(), 30); // Max 5min warten diff --git a/xtts/docker-compose.yml b/xtts/docker-compose.yml index f0a932d..93b7915 100644 --- a/xtts/docker-compose.yml +++ b/xtts/docker-compose.yml @@ -27,7 +27,7 @@ services: count: 1 capabilities: [gpu] ports: - - "8000:8000" + - "8000:8020" volumes: - xtts-models:/root/.local/share/tts # Model-Cache (~2GB) - ./voices:/voices # Custom Voice Samples @@ -42,7 +42,7 @@ services: depends_on: - xtts environment: - - XTTS_API_URL=http://xtts:8000 + - XTTS_API_URL=http://xtts:8020 - RVS_HOST=${RVS_HOST} - RVS_PORT=${RVS_PORT:-443} - RVS_TLS=${RVS_TLS:-true}