Skip to content

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-office during fynncloud-aio setup, or
  • Enable EuroOffice later from Administration → System → Components (or run fynncloud-aio upgrade --enable-office).

When toggled on in AIO, SystemController automatically:

  1. Starts fynncloud-eurooffice on fynncloud-frontend (~1.5 GB RAM).
  2. Exposes it under https://<your-domain>/eurooffice (no extra subdomain or TLS certificate required unless you explicitly set components.eurooffice.domain in /data/stack.yaml).
  3. Generates a high-entropy docsJwtSecret and writes docsServerUrl, docsJwtSecret, and docsWopiPublicUrl straight into FynnCloud’s encrypted AppSettings store.

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:

  1. Ensure EuroOffice runs with JWT enabled and a shared secret matching FynnCloud:

    WOPI_ENABLED=true
    JWT_ENABLED=true
    JWT_SECRET=<same-secret-as-DOCS_JWT_SECRET>
  2. Configure FynnCloud Server either in Administration → Settings → Document Editing or via environment variables:

    DOCS_PROVIDER=eurooffice
    DOCS_SERVER_URL=https://office.cloud.example.com
    DOCS_JWT_SECRET=<same-secret-as-JWT_SECRET>
    # Optional: internal HTTP URL from fynncloud-server -> EuroOffice to bypass NAT hairpinning
    DOCS_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:

  1. Set the following in Administration → Settings → Document Editing (or environment variables):

    DOCS_PROVIDER=wopi
    DOCS_SERVER_URL=https://collabora.example.com
    DOCS_WOPI_PUBLIC_URL=https://cloud.example.com
  2. Authorize your FynnCloud domain (cloud.example.com) as an allowed WOPI host in Collabora’s aliasgroup1 / coolwsd.xml configuration.

  3. FynnCloud automatically fetches and caches /hosting/discovery from DOCS_SERVER_URL and auto-invalidates the cached discovery XML whenever DOCS_SERVER_URL changes.


  1. When a user opens a supported document (.docx, .doc, .odt, .txt, .md, .xlsx, .xls, .ods, .pptx, .ppt, .odp), FynnCloud Server verifies access permissions (explicitly rejecting AppAccessToken callers with 403 and supporting signed-in Viewer/Editor/Manager plus collaborative public links).
  2. FynnCloud mints a short-lived signed editor session and callback URL.
  3. 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 FynnCloud FileVersion snapshot automatically.