This commit is contained in:
@@ -22,15 +22,6 @@ npm install
|
||||
PORT=3100 npm start
|
||||
```
|
||||
|
||||
## Docker
|
||||
|
||||
Build and run the service with Docker:
|
||||
|
||||
```bash
|
||||
docker build -t vthumbs:local .
|
||||
docker run --rm -p 3100:3100 -e PORT=3100 vthumbs:local
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```http
|
||||
@@ -39,18 +30,6 @@ GET /thumbnail?url=https://example.com/video.mp4
|
||||
|
||||
Returns a JPEG image extracted at 1 second.
|
||||
|
||||
## Health Check
|
||||
|
||||
```http
|
||||
GET /health
|
||||
```
|
||||
|
||||
Returns JSON:
|
||||
|
||||
```json
|
||||
{"status":"ok"}
|
||||
```
|
||||
|
||||
## Client Configuration
|
||||
|
||||
Configure your client app with the base URL where this service is deployed.
|
||||
@@ -60,3 +39,11 @@ Example:
|
||||
```env
|
||||
THUMBNAIL_SERVICE_URL=https://your-thumbnail-service.example.com
|
||||
```
|
||||
|
||||
## Deployment
|
||||
|
||||
To run your own server:
|
||||
|
||||
```sh
|
||||
docker run -d -p 3100:3100 ghcr.io/coracle-social/vthumbs:latest
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user