mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-15 20:02:15 +01:00
improving documentation on timeout issues
This commit is contained in:
@@ -42,6 +42,7 @@ You may also disable LibreOffice (unoconv) with `DISABLE_UNOCONV`.
|
||||
## Default wait timeout
|
||||
|
||||
By default, the API will wait 10 seconds before it considers the conversion to be unsuccessful.
|
||||
If unsucessful, it returns a `504` HTTP code.
|
||||
|
||||
You may customize this timeout thanks to the environment variable `DEFAULT_WAIT_TIMEOUT`.
|
||||
|
||||
|
||||
@@ -6,6 +6,13 @@ Gotenberg provides the endpoint `/convert/html` for HTML conversions.
|
||||
|
||||
It accepts `POST` requests with a `multipart/form-data` Content-Type.
|
||||
|
||||
> **Attention:** currently, Google Chrome headless misbehaves if there are too many concurrent conversions.
|
||||
> That's why for HTML, [URL](#url) and [Markdown](#markdown) conversions, the API does only 6 conversions at a time.
|
||||
> The more concurrent requests, the more `504` HTTP codes the API will return.
|
||||
>
|
||||
> See the [scalability section](#scalability) to find how to mitigate this issue.
|
||||
> You may also take a look at the [timeout section](#timeout).
|
||||
|
||||
## Basic
|
||||
|
||||
The only requirement is to send a file named `index.html`: it is the file
|
||||
|
||||
@@ -6,6 +6,13 @@ Gotenberg provides the endpoint `/convert/office` for Office document conversion
|
||||
|
||||
It accepts `POST` requests with a `multipart/form-data` Content-Type.
|
||||
|
||||
> **Attention:** currently, `unoconv` cannot perform concurrent conversions.
|
||||
> That's why for Office conversions, the API does only one conversion at a time.
|
||||
> The more concurrent requests, the more `504` HTTP codes the API will return.
|
||||
>
|
||||
> See the [scalability section](#scalability) to find how to mitigate this issue.
|
||||
> You may also take a look at the [timeout section](#timeout).
|
||||
|
||||
## Basic
|
||||
|
||||
You may send one or more Office documents. Following file extensions are accepted:
|
||||
@@ -25,9 +32,7 @@ You may send one or more Office documents. Following file extensions are accepte
|
||||
|
||||
All files will be merged into a single resulting PDF.
|
||||
|
||||
> **Attention:** currently, `unoconv` cannot perform concurrent conversions.
|
||||
> That's why for Office conversions, the API does only one conversion at a time.
|
||||
> See the [scalability section](#scalability) to find how to mitigate this issue.
|
||||
> **Attention:** Gotenberg merges the PDF files alphabetically.
|
||||
|
||||
### cURL
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ title: Timeout
|
||||
All endpoints accept a form field named `waitTimeout`.
|
||||
|
||||
The API will wait the given **seconds** before it considers the conversion to be unsucessful.
|
||||
If unsucessful, it returns a `504` HTTP code.
|
||||
|
||||
It takes a float as value (e.g `2.5` for 2.5 seconds).
|
||||
|
||||
|
||||
@@ -5,11 +5,6 @@ title: Ping
|
||||
Gotenberg provides the endpoint `/ping` for checking the API availability with
|
||||
a simple `GET` request.
|
||||
|
||||
This feature is especially useful for liveness/readiness probes in Kubernetes:
|
||||
|
||||
* [Pod lifecycle](https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes)
|
||||
* [Configure Liveness and Readiness Probes](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/)
|
||||
|
||||
If `LOG_LEVEL` is `"DEBUG"`, it also returns details about the PM2 processes in JSON format.
|
||||
For instance:
|
||||
|
||||
@@ -39,3 +34,5 @@ For instance:
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
> if `LOG_LEVEL` is NOT `"DEBUG"`, no log entries are written.
|
||||
@@ -7,7 +7,7 @@ By default, a handful of fonts are installed. Asian characters are also supporte
|
||||
If you wish to use more fonts, you will have to create your own image:
|
||||
|
||||
```Dockerfile
|
||||
FROM thecodingmachine/gotenberg:5
|
||||
FROM thecodingmachine/gotenberg:6
|
||||
|
||||
RUN apt-get -y install yourfonts
|
||||
```
|
||||
Reference in New Issue
Block a user