Web server for converting files using unoserver
100K+
Web server for converting files using unoserver
Source code: https://github.com/lynxtaa/unoserver-web
Using Dockerhub Image:
docker run -d -p 3000:3000 lynxtaa/unoserver-web:latest
curl \
--request POST 'http://localhost:3000/convert/pdf' \
--form 'file=@"/path/to/file.docx"' \
-o my.pdf
| Route | Description |
|---|---|
POST /convert/{format} | Converts the uploaded file to format |
GET /documentation/ | Swagger UI |
GET /health | Health check, returns 200 OK |
GET /metrics | Go runtime and process metrics in Prometheus format |
| Variable | Description | Default |
|---|---|---|
| PORT | Application port | 3000 |
| MAX_WORKERS | Maximum number of LibreOffice workers | 8 |
| CONVERSION_RETRIES | Number of retries for converting input file | 3 |
| MAX_FILE_SIZE | Maximum uploaded file size in bytes (0 means unlimited) | 0 |
| BASE_PATH | Prefix path the app is served behind, used in Swagger and redirects | |
| LOG_LEVEL | Minimum logged level: debug, info, warn or error | info |
| PRETTY_LOGS | Log human-readable text instead of JSON | false |
| REQUEST_ID_HEADER | The header name used to set the request-id | |
| REQUEST_ID_LOG_LABEL | Defines the label used for the request identifier when logging the request | reqId |
Content type
Image
Digest
sha256:1dbb4c4c2…
Size
244.5 MB
Last updated
about 2 months ago
docker pull lynxtaa/unoserver-web