euro-office
Euro-Office document server provides a truly open, transparent, and sovereign solution for collaborative document editing.
- Maintainer: @dannygroenewegen, @ineiti, @moritz
- Category: Apps
- Status: 0
- Image:
euro-office/documentserver, 4, upstream - Healthcheck: Yes
- Backups: Yes
- Email: N/A
- Tests: No
- SSO: N/A
Quick start
abra app new euro-office --secretsabra app config <app-name>abra app deploy <app-name>
This recipe runs only the Euro-Office document server itself, it's a backend service with a client-side document-server architecture, not something end users interact with directly. It's meant to be pointed at by a document-editing frontend such as Nextcloud.
Connecting with Nextcloud
To configure Nextcloud for using Euro-Office:
occ app:install eurooffice
occ config:app:set eurooffice DocumentServerUrl --value="https://<this-recipe-DOMAIN>/"
occ config:app:set eurooffice jwt_secret --value="<jwt secret>"
Multi-tenant mode
The single jwt Docker secret above should not be shared across more than
one Nextcloud instance for security reasons. Enabling compose.tenants.yml
turns on multi-tenant mode instead, giving each Nextcloud instance its own
secret:
COMPOSE_FILE="$COMPOSE_FILE:compose.tenants.yml"
TENANTS_BASE_DOMAIN=euro-office.example.com
TENANTS_TRAEFIK_RULE=Host(`a.euro-office.example.com`) || Host(`b.euro-office.example.com`)
A tenant is identified purely by the Host header of the request reaching this
server, so any instance still pointed at the bare DOMAIN keeps using
the jwt secret. Only instances pointed at their own subdomain/slug get
their own jwt.
TENANTS_BASE_DOMAIN can be the same as DOMAIN, but doesn't have to.
TENANTS_TRAEFIK_RULE must be valid Traefik rule syntax. With the default
HTTP-01 certresolver, each tenant subdomain needs its own explicit
Host(...) entry in the rule, OR'd together, since HTTP-01 can't issue a
certificate for a regex/wildcard host. If a DNS-01 challenge is set up for
this domain instead, a single wildcard rule can be used:
Host(`*.euro-office.example.com`).
To onboard a tenant:
- Point a DNS record at this server for the new subdomain.
- Add its
Host(...)clause toTENANTS_TRAEFIK_RULEand redeploy. - Generate (or fetch, idempotently) its secret:
Pass
abra app cmd -T <this-recipe-domain> app -- get_tenant_jwt <tenant-subdomain>renewas a second argument to rotate an existing tenant's secret. - Point that Nextcloud instance at
https://<tenant-subdomain>.<TENANTS_BASE_DOMAIN>/with the secret from step 3, as in "Connecting with Nextcloud" above.