Merge branch 'main' of https://github.com/Xargana/blahaj-srv
This commit is contained in:
commit
1990f1c88b
|
@ -4,7 +4,9 @@
|
||||||
"description": "scripts for blahaj.tr",
|
"description": "scripts for blahaj.tr",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"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": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -7,9 +7,9 @@ const path = require("path");
|
||||||
|
|
||||||
const app = express();
|
const app = express();
|
||||||
const PORT = 2589;
|
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 = {
|
let serverStatus = {
|
||||||
online: false,
|
online: false,
|
||||||
|
|
Loading…
Reference in a new issue