Skip to content

Commit 1009fae

Browse files
authored
feat: add deepl plugin configuration (#149)
1 parent 9bf316b commit 1009fae

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,19 @@ COLLABORA_ADMIN_CONSOLE_ENABLE=true
1515
COLLABORA_ADMIN_CONSOLE_ENABLE_PAM=false
1616
COLLABORA_ADMIN_CONSOLE_PASSWORD=
1717
COLLABORA_ADMIN_CONSOLE_USERNAME=
18+
1819
COLLABORA_ALLOWED_LANGUAGES="de_DE en_GB en_US es_ES fr_FR it nl pt_BR pt_PT ru"
1920
COLLABORA_LOGGING_ANONYMIZE_USER_DATA=false
2021
COLLABORA_LOGGING_COLOR=true
2122
COLLABORA_LOGGING_LEVEL=warning
23+
2224
COLLABORA_NET_LISTEN=any
2325
COLLABORA_NET_POST_ALLOW=true
2426
COLLABORA_NET_POST_ALLOW_HOSTS="127.0.0.1 ::1"
2527
COLLABORA_NET_PROTO=all
28+
COLLABORA_SERVER_NAME=
2629
COLLABORA_NUM_RESPAWN_CHILDREN=1
30+
2731
COLLABORA_PER_DOCUMENT_AUTOSAVE_DURATION=300
2832
COLLABORA_PER_DOCUMENT_IDLESAVE_DURATION=30
2933
COLLABORA_PER_DOCUMENT_IDLE_TIMEOUT=3600
@@ -33,16 +37,20 @@ COLLABORA_PER_DOCUMENT_MAX_CONCURRENCY=4
3337
COLLABORA_PER_DOCUMENT_REDLINING_AS_COMMENT=true
3438
COLLABORA_PER_VIEW_IDLE_TIMEOUT=900
3539
COLLABORA_PER_VIEW_OUT_OF_FOCUS_TIMEOUT=120
40+
3641
COLLABORA_SECURITY_CAPABILITIES=true
3742
COLLABORA_SECURITY_SECCOMP=true
38-
COLLABORA_SERVER_NAME=
43+
COLLABORA_SSL_ENABLE=false
44+
COLLABORA_SSL_TERMINATION_ENABLE=true
45+
3946
COLLABORA_STORAGE_WOPI_ALLOW=true
4047
COLLABORA_STORAGE_WOPI_HOSTS_ALLOW="localhost"
4148
COLLABORA_STORAGE_WOPI_MAX_FILE_SIZE=0
4249
COLLABORA_TRACE_ENABLE=false
4350
COLLABORA_TRACE_FILTER=
44-
COLLABORA_SSL_ENABLE=false
45-
COLLABORA_SSL_TERMINATION_ENABLE=true
51+
52+
COLLABORA_PLUGIN_DEEPL_ENABLED=false
53+
COLLABORA_PLUGIN_DEEPL_AUTH_KEY=
4654
```
4755

4856
## Ports

overlay/etc/templates/coolwsd.xml.tmpl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,5 +162,13 @@
162162

163163
<monitors>
164164
</monitors>
165+
{{- if (getenv "COLLABORA_PLUGIN_DEEPL_ENABLED" "false" | conv.ToBool) }}
166+
167+
<deepl>
168+
<enabled type="bool" default="false">true</enabled>
169+
<api_url type="string" default="">https://api-free.deepl.com/v2/translate</api_url>
170+
<auth_key type="string" default="">{{ getenv "COLLABORA_PLUGIN_DEEPL_AUTH_KEY" }}</auth_key>
171+
</deepl>
172+
{{- end }}
165173

166174
</config>

0 commit comments

Comments
 (0)