mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-08 00:22:14 +01:00
26 lines
737 B
YAML
26 lines
737 B
YAML
# The port the application will listen to.
|
|
port: 3000
|
|
|
|
logs:
|
|
# Accepted values, in order of severity: DEBUG, INFO, WARN, ERROR, FATAL, PANIC.
|
|
# Messages at and above the selected level will be logged.
|
|
level: "DEBUG"
|
|
|
|
# Accepted values: text, json.
|
|
# When a TTY is not attached, the output will be in the definied format.
|
|
format: "text"
|
|
|
|
commands:
|
|
|
|
html:
|
|
timeout: 30
|
|
template: "xvfb-run -e /dev/stdout wkhtmltopdf {{ .FilePath }} {{ .ResultFilePath }}"
|
|
|
|
office:
|
|
timeout: 30
|
|
template: "unoconv --format pdf --output \"{{ .ResultFilePath }}\" \"{{ .FilePath }}\""
|
|
|
|
merge:
|
|
timeout: 30
|
|
template: "pdftk {{ range $filePath := .FilesPaths }} {{ $filePath }} {{ end }} cat output {{ .ResultFilePath }}"
|