diff --git a/.env.sample b/.env.sample index 28ae38e..26c2654 100644 --- a/.env.sample +++ b/.env.sample @@ -5,3 +5,4 @@ NEXTCLOUD_DOMAIN=nextcloud.example.com ADMIN_USERNAME=admin SECRET_ADMIN_PASSWORD_VERSION=v1 FRAME_ANCESTORS= +DICTIONARIES=de_DE en_GB en_US es_ES fr_FR it nl pt_BR pt_PT \ No newline at end of file diff --git a/README.md b/README.md index 9de9cc9..213a0ca 100644 --- a/README.md +++ b/README.md @@ -18,14 +18,22 @@ 1. Set up Docker Swarm and [`abra`](https://git.autonomic.zone/coop-cloud/abra) 1. Deploy [`coop-cloud/traefik`](https://git.autonomic.zone/coop-cloud/traefik) +1. `abra app new collabora` to install collabora. 1. `abra app config YOURAPPDOMAIN` - be sure to change `$DOMAIN` to something that resolves to your Docker swarm box 1. `abra app deploy YOURAPPDOMAIN` +1. In nextcloud, go to Admin->Office, select "Use your own server" and enter only the DOMAIN (including https://) in "URL (and Port) of Collabora Online-server". Admin Interface: `https://YOURAPPDOMAIN/browser/dist/admin/admin.html` +## Languages for spell checking + +To change default languages for spell checking, add or remove language-codes (and optionally country code) from the DICTIONARIES-list when configuring your app. Consult list of [language codes](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) and [country codes](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes). For example: + +`DICTIONARIES=de_DE en_GB en_US es_ES fr_FR da_DK` + ## Acknowledgements Config'd with thanks to [the people behind this article](https://geek-cookbook.funkypenguin.co.nz/recipes/collabora-online/). diff --git a/compose.yml b/compose.yml index 9e66d7d..2a1cb6f 100644 --- a/compose.yml +++ b/compose.yml @@ -56,6 +56,7 @@ services: - DONT_GEN_SSL_CERT=true - NEXTCLOUD_DOMAIN=${NEXTCLOUD_DOMAIN} - FRAME_ANCESTORS + - DICTIONARIES networks: - internal deploy: diff --git a/coolwsd.xml.tmpl b/coolwsd.xml.tmpl index 3f5fad0..609d256 100644 --- a/coolwsd.xml.tmpl +++ b/coolwsd.xml.tmpl @@ -7,7 +7,8 @@ - de_DE en_GB en_US es_ES fr_FR it nl pt_BR pt_PT ru + {{ env "DICTIONARIES" }} +