From 1ef92eb768acff3c6d047a15879e67336a9ed20e Mon Sep 17 00:00:00 2001 From: PoturaevPetr Date: Tue, 25 Aug 2026 11:52:56 +0500 Subject: [PATCH] fix server config --- .env.test | 6 ++++-- apiApp/config.py | 4 ++-- apiApp/routers/audio_management_router.py | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.env.test b/.env.test index c3ecc72..1256174 100644 --- a/.env.test +++ b/.env.test @@ -13,7 +13,7 @@ APP_VERSION=1.0.0 # Server HOST=0.0.0.0 -PORT=5056 +PORT=5008 RELOAD=True #SFTP @@ -23,4 +23,6 @@ SFPT_PASSWORD = Audio4analy6!6 FILESAPTH = audiofiles -GIGAAM_API_URL = http://localhost:5001 \ No newline at end of file +GIGAAM_API_URL = http://host.docker.internal:5002 +CALLS_WEB_CLIENT_URL=http://web_client_test:8642 +AUDIO_FILES_PATH_TEST=D:\SpeechAnalitics\audiofiles diff --git a/apiApp/config.py b/apiApp/config.py index b4291f3..33cb42c 100644 --- a/apiApp/config.py +++ b/apiApp/config.py @@ -25,14 +25,14 @@ PORT = int(os.getenv("PORT", "5008")) HOST = os.getenv("HOST", "localhost") # GigaAM API Configuration -GIGAAM_API_URL = os.getenv("GIGAAM_API_URL", "http://192.168.1.73:5002") +GIGAAM_API_URL = os.getenv("GIGAAM_API_URL", "http://host.docker.internal:5002") AUDIOFILES_PATH = os.path.join(os.getcwd(), os.getenv("FILESAPTH", "audiofiles")) # Calls_WEB_Client_main Webhook Configuration CALLS_WEB_CLIENT_URL = os.getenv( "CALLS_WEB_CLIENT_URL", - "http://192.168.1.73:8642" + "http://host.docker.internal:8642" ) WEBHOOK_ENDPOINT = f"{CALLS_WEB_CLIENT_URL}/api/transcription/webhook" WEBHOOK_API_KEY = os.getenv("WEBHOOK_API_KEY", "webhook_secret_key") diff --git a/apiApp/routers/audio_management_router.py b/apiApp/routers/audio_management_router.py index b3655e5..fe3e41c 100644 --- a/apiApp/routers/audio_management_router.py +++ b/apiApp/routers/audio_management_router.py @@ -250,7 +250,7 @@ async def process_all_pending_audio( logger.info(f"🚀 Поиск Audio без AiConclusion (limit={limit})") # Находим все Audio без AiConclusion используя вспомогательную функцию - pending_audio = query_audio_without_conclusion(db, limit).all() + pending_audio: list[Audio] = query_audio_without_conclusion(db, limit).all() total_pending = query_audio_without_conclusion(db).count() if not pending_audio: