Sign inSign up

lynxtaa/unoserver-web

By lynxtaa

•Updated about 2 months ago

Web server for converting files using unoserver

Image
3

100K+

lynxtaa/unoserver-web repository overview

⁠Unoserver Web

Web server for converting files using unoserver⁠

Source code: https://github.com/lynxtaa/unoserver-web⁠

⁠Example

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

⁠Endpoints

RouteDescription
POST /convert/{format}Converts the uploaded file to format
GET /documentation/Swagger UI
GET /healthHealth check, returns 200 OK
GET /metricsGo runtime and process metrics in Prometheus format

⁠Container Environment

VariableDescriptionDefault
PORTApplication port3000
MAX_WORKERSMaximum number of LibreOffice workers8
CONVERSION_RETRIESNumber of retries for converting input file3
MAX_FILE_SIZEMaximum uploaded file size in bytes (0 means unlimited)0
BASE_PATHPrefix path the app is served behind, used in Swagger and redirects
LOG_LEVELMinimum logged level: debug, info, warn or errorinfo
PRETTY_LOGSLog human-readable text instead of JSONfalse
REQUEST_ID_HEADERThe header name used to set the request-id
REQUEST_ID_LOG_LABELDefines the label used for the request identifier when logging the requestreqId

Tag summary

Content type

Image

Digest

sha256:1dbb4c4c2…

Size

244.5 MB

Last updated

about 2 months ago

docker pull lynxtaa/unoserver-web