fix: XTTS bridge port 8020, longer startup wait
- XTTS API runs on port 8020 (not 8000) - Bridge waits up to 5min for model download (30x10s) - Health check uses / instead of /docs Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
7ed70b876d
commit
a1e1ee31bd
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Reference in New Issue