From c96af6476a1d2e65eb92b90483efc9d1d62df086 Mon Sep 17 00:00:00 2001 From: Xargana Date: Wed, 26 Mar 2025 18:17:49 +0300 Subject: [PATCH 1/2] a2 --- status/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/status/server.js b/status/server.js index 887e480..85c55a5 100644 --- a/status/server.js +++ b/status/server.js @@ -9,7 +9,7 @@ const app = express(); const PORT = 2589; const REMOTE_SERVER = "https://example.com"; // Change this -const CHECK_INTERVAL = 30 * 1000; +const CHECK_INTERVAL = 5 * 1000; let serverStatus = { online: false, From e88f6497e9bde5c428d97e0f982e7be1a9c9d30e Mon Sep 17 00:00:00 2001 From: Xargana Date: Wed, 26 Mar 2025 18:41:34 +0300 Subject: [PATCH 2/2] a --- package.json | 4 +++- status/server.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5765dad..f55b605 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "scripts for blahaj.tr", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "start": "pm2 start status/server.js --name status-service-api", + "restart": "pm2 restart status-service-api" }, "repository": { "type": "git", diff --git a/status/server.js b/status/server.js index 85c55a5..1b9abe6 100644 --- a/status/server.js +++ b/status/server.js @@ -7,7 +7,7 @@ const path = require("path"); const app = express(); const PORT = 2589; -const REMOTE_SERVER = "https://example.com"; // Change this +const REMOTE_SERVER = "https://blahaj.tr"; const CHECK_INTERVAL = 5 * 1000;