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:
+4
-4
@@ -256,13 +256,13 @@ log(`RVS: ${RVS_HOST}:${RVS_PORT}`);
|
|||||||
// Warten bis XTTS API erreichbar ist
|
// Warten bis XTTS API erreichbar ist
|
||||||
function waitForXTTS(callback, attempts) {
|
function waitForXTTS(callback, attempts) {
|
||||||
if (attempts <= 0) { log("XTTS API nicht erreichbar — starte trotzdem"); callback(); return; }
|
if (attempts <= 0) { log("XTTS API nicht erreichbar — starte trotzdem"); callback(); return; }
|
||||||
http.get(`${XTTS_API_URL}/docs`, (res) => {
|
http.get(`${XTTS_API_URL}/`, (res) => {
|
||||||
log("XTTS API erreichbar");
|
log(`XTTS API erreichbar (HTTP ${res.statusCode})`);
|
||||||
callback();
|
callback();
|
||||||
}).on("error", () => {
|
}).on("error", () => {
|
||||||
log(`XTTS API noch nicht bereit — warte (${attempts} Versuche uebrig)...`);
|
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
|
count: 1
|
||||||
capabilities: [gpu]
|
capabilities: [gpu]
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "8000:8020"
|
||||||
volumes:
|
volumes:
|
||||||
- xtts-models:/root/.local/share/tts # Model-Cache (~2GB)
|
- xtts-models:/root/.local/share/tts # Model-Cache (~2GB)
|
||||||
- ./voices:/voices # Custom Voice Samples
|
- ./voices:/voices # Custom Voice Samples
|
||||||
@@ -42,7 +42,7 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- xtts
|
- xtts
|
||||||
environment:
|
environment:
|
||||||
- XTTS_API_URL=http://xtts:8000
|
- XTTS_API_URL=http://xtts:8020
|
||||||
- RVS_HOST=${RVS_HOST}
|
- RVS_HOST=${RVS_HOST}
|
||||||
- RVS_PORT=${RVS_PORT:-443}
|
- RVS_PORT=${RVS_PORT:-443}
|
||||||
- RVS_TLS=${RVS_TLS:-true}
|
- RVS_TLS=${RVS_TLS:-true}
|
||||||
|
|||||||
Reference in New Issue
Block a user