From e7b6a3e6a6ce4f298525982d460b17202b9e1a08 Mon Sep 17 00:00:00 2001 From: dev-taewon-kim Date: Thu, 28 Nov 2024 18:05:45 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20signaling,=20voice=20=EC=84=9C=EB=B2=84?= =?UTF-8?q?=20health-check=20API=20=EC=97=94=EB=93=9C=ED=8F=AC=EC=9D=B8?= =?UTF-8?q?=ED=8A=B8=20=EC=83=9D=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- be/signalingServer/src/main.js | 1 + be/voiceProcessingServer/src/main.js | 1 + 2 files changed, 2 insertions(+) diff --git a/be/signalingServer/src/main.js b/be/signalingServer/src/main.js index d516dff..281fcca 100644 --- a/be/signalingServer/src/main.js +++ b/be/signalingServer/src/main.js @@ -5,6 +5,7 @@ const config = require("./config/app.config"); const SocketService = require("./services/socket.service"); const app = express(); +app.get("/health-check", (req, res) => res.status(200).send("Healthy")); const httpServer = createServer(app); const io = new Server(httpServer, { diff --git a/be/voiceProcessingServer/src/main.js b/be/voiceProcessingServer/src/main.js index 43da906..5930c9b 100644 --- a/be/voiceProcessingServer/src/main.js +++ b/be/voiceProcessingServer/src/main.js @@ -32,6 +32,7 @@ if (cluster.isMaster) { const REDIS_ROOM_KEY_EXPIRE_TIME = process.env.REDIS_ROOM_KEY_EXPIRE_TIME; const app = express(); + app.get("/health-check", (req, res) => res.status(200).send("Healthy")); const server = http.createServer(app); // Redis pub/sub clients for Socket.IO adapter