mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-14 11:22:15 +01:00
33 lines
1.1 KiB
Markdown
33 lines
1.1 KiB
Markdown
---
|
|
title: Environment variables
|
|
---
|
|
|
|
You may customize the API behaviour thanks to environment variables.
|
|
|
|
## Disable Google Chrome
|
|
|
|
In order to save some resources, the Gotenberg image accepts the environment variable `DISABLE_GOOGLE_CHROME`.
|
|
|
|
It takes the strings `"0"` or `"1"` as value.
|
|
|
|
> If Google Chrome is disabled, the following conversions will **not** be available anymore:
|
|
> [HTML](#html), [URL](#url) and [Markdown](#markdown)
|
|
|
|
|
|
## Disable LibreOffice (unoconv)
|
|
|
|
You may also disable LibreOffice (unoconv) with `DISABLE_UNOCONV`.
|
|
|
|
> If LibreOffice (unoconv) is disabled, the following conversion will **not** be available anymore:
|
|
> [Office](#office)
|
|
|
|
## Default wait timeout
|
|
|
|
By default, the API will wait 10 seconds before it considers the conversion to be unsuccessful.
|
|
|
|
You may customize this timeout thanks to the environment variable `DEFAULT_WAIT_TIMEOUT`.
|
|
|
|
It takes a string representation of a float as value (e.g `"2.5"` for 2.5 seconds).
|
|
|
|
> The default timeout may also be overridden per request thanks to the form field `waitTimeout`.
|
|
> See the [timeout section](#timeout). |