Services Monitor

This commit is contained in:
2025-09-26 23:59:18 -04:00
parent d55333a652
commit fa0a7bba8a
13 changed files with 297 additions and 106 deletions

35
README.md Normal file
View File

@@ -0,0 +1,35 @@
# BTCforPlebs.com Link Status Server
This server checks the status of various BTCforPlebs services and provides a JSON API endpoint.
## Setup
1. Install dependencies:
```bash
npm install
```
2. Start the server:
```bash
npm start
```
The server will start on port 5252 by default. You can change this by setting the PORT environment variable.
## API Endpoints
- GET `/api/link-status` - Returns the status of all monitored services
## Configuration
Edit `config.js` to modify:
- Port number
- Allowed CORS origins
- Add or remove monitored URLs
## Development
The server uses:
- Express.js for the API server
- node-fetch for making HTTP requests
- CORS enabled for specified origins