diff --git a/package.json b/package.json index c943889..f52b554 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 887e480..1b9abe6 100644 --- a/status/server.js +++ b/status/server.js @@ -7,9 +7,9 @@ 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 = 30 * 1000; +const CHECK_INTERVAL = 5 * 1000; let serverStatus = { online: false,