Document Server (EuroOffice & WOPI)
FynnCloud integrates with in-browser office suites through two modes selected by DOCS_PROVIDER:
eurooffice(default, recommended) — Native DocsAPI integration with EuroOffice Document Server (ghcr.io/euro-office/documentserver:v9.3.8), secured with symmetric HS256 JWT signing for both editor configuration and document save callbacks.wopi— Standard WOPI host protocol (/api/wopi/files/:fileID&/contents) for Collabora Online (CODE) or ONLYOFFICE in WOPI mode.
Option 1: FynnCloud AIO (Zero-Config Auto-Wiring)
Section titled “Option 1: FynnCloud AIO (Zero-Config Auto-Wiring)”The easiest way to enable document editing is through FynnCloud AIO:
- Pass
--enable-officeduringfynncloud-aio setup, or - Enable EuroOffice later from Administration → System → Components (or run
fynncloud-aio upgrade --enable-office).
When toggled on in AIO, SystemController automatically:
- Starts
fynncloud-euroofficeonfynncloud-frontend(~1.5 GB RAM). - Exposes it under
https://<your-domain>/eurooffice(no extra subdomain or TLS certificate required unless you explicitly setcomponents.eurooffice.domainin/data/stack.yaml). - Generates a high-entropy
docsJwtSecretand writesdocsServerUrl,docsJwtSecret, anddocsWopiPublicUrlstraight into FynnCloud’s encryptedAppSettingsstore.
Option 2: Docker Compose or External EuroOffice
Section titled “Option 2: Docker Compose or External EuroOffice”When running EuroOffice via Docker Compose (docker compose --profile office up -d) or on a dedicated host:
-
Ensure EuroOffice runs with JWT enabled and a shared secret matching FynnCloud:
WOPI_ENABLED=trueJWT_ENABLED=trueJWT_SECRET=<same-secret-as-DOCS_JWT_SECRET> -
Configure FynnCloud Server either in Administration → Settings → Document Editing or via environment variables:
DOCS_PROVIDER=euroofficeDOCS_SERVER_URL=https://office.cloud.example.comDOCS_JWT_SECRET=<same-secret-as-JWT_SECRET># Optional: internal HTTP URL from fynncloud-server -> EuroOffice to bypass NAT hairpinningDOCS_SERVER_INTERNAL_URL=http://fynncloud-eurooffice:80
Avoiding NAT Hairpinning with DOCS_SERVER_INTERNAL_URL
Section titled “Avoiding NAT Hairpinning with DOCS_SERVER_INTERNAL_URL”In many homelab and VPC topologies, containers inside Docker cannot connect out to the server’s own public IP/domain (https://cloud.example.com/eurooffice). Setting DOCS_SERVER_INTERNAL_URL (e.g. http://fynncloud-eurooffice:80) tells FynnCloud Server to keep advertising the public DOCS_SERVER_URL to user browsers while making server-to-document-server HTTP calls over the internal Docker/cluster network.
Option 3: WOPI Provider (Collabora Online / CODE)
Section titled “Option 3: WOPI Provider (Collabora Online / CODE)”To connect a WOPI-compliant office server such as Collabora Online:
-
Set the following in Administration → Settings → Document Editing (or environment variables):
DOCS_PROVIDER=wopiDOCS_SERVER_URL=https://collabora.example.comDOCS_WOPI_PUBLIC_URL=https://cloud.example.com -
Authorize your FynnCloud domain (
cloud.example.com) as an allowed WOPI host in Collabora’saliasgroup1/coolwsd.xmlconfiguration. -
FynnCloud automatically fetches and caches
/hosting/discoveryfromDOCS_SERVER_URLand auto-invalidates the cached discovery XML wheneverDOCS_SERVER_URLchanges.
Security & Save Callback Flow
Section titled “Security & Save Callback Flow”- When a user opens a supported document (
.docx,.doc,.odt,.txt,.md,.xlsx,.xls,.ods,.pptx,.ppt,.odp), FynnCloud Server verifies access permissions (explicitly rejectingAppAccessTokencallers with403and supporting signed-inViewer/Editor/Managerpluscollaborativepublic links). - FynnCloud mints a short-lived signed editor session and callback URL.
- EuroOffice fetches the document stream from FynnCloud Server using the signed token, synchronizes live co-editing across browsers, and POSTs saved revisions back to FynnCloud’s callback endpoint—verified via
DOCS_JWT_SECRET—creating a new FynnCloudFileVersionsnapshot automatically.