init commit
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
# VideoReader Global Server
|
||||
|
||||
## Quick Start
|
||||
|
||||
1. Install dependencies:
|
||||
```bash
|
||||
npm install
|
||||
```
|
||||
|
||||
2. Start the server:
|
||||
```bash
|
||||
npm start
|
||||
```
|
||||
|
||||
3. Open web interface:
|
||||
```
|
||||
http://localhost:3000
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
||||
Environment variables:
|
||||
- `PORT` - Signaling server port (default: 3000)
|
||||
- `MEDIA_PORT` - Media relay port (default: 5000)
|
||||
- `MEDIA_SERVER_IP` - IP to return to clients (default: 127.0.0.1)
|
||||
|
||||
## Client Configuration
|
||||
|
||||
Update your VideoReader client config:
|
||||
```json
|
||||
{
|
||||
"SignalingServer": "localhost:3000",
|
||||
"DataPort": 5000,
|
||||
"DefaultChannel": 10,
|
||||
"UseSSL": false,
|
||||
"ProfileName": "local"
|
||||
}
|
||||
```
|
||||
|
||||
## API Endpoints
|
||||
|
||||
- `GET /` - Web interface
|
||||
- `GET /get-ip-kr.php?port={channel}` - Get media server IP (binary response)
|
||||
- `GET /api/status` - Server status (JSON)
|
||||
- `GET /api/channels` - Active channels list (JSON)
|
||||
|
||||
## Docker Deployment
|
||||
|
||||
```bash
|
||||
docker build -t videoreader-server .
|
||||
docker run -p 3000:3000 -p 5000:5000 videoreader-server
|
||||
```
|
||||
Reference in New Issue
Block a user