<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Office – Serverküche</title><link>https://serverkueche.de/en/tags/office/</link><description>Office – Neueste Beiträge von Serverküche</description><generator>Hugo</generator><language>en-US</language><managingEditor>feedback@serverkueche.de (Serverküche)</managingEditor><webMaster>feedback@serverkueche.de (Serverküche)</webMaster><copyright>2026 Serverküche</copyright><lastBuildDate>Thu, 19 Nov 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://serverkueche.de/en/tags/office/index.xml" rel="self" type="application/rss+xml"/><item><title>Nextcloud Office: Documents in the Browser with Collabora (Part 3)</title><link>https://serverkueche.de/en/tutorials/nextcloud-office-collabora/</link><pubDate>Thu, 19 Nov 2026 00:00:00 +0000</pubDate><author>feedback@serverkueche.de (Serverküche)</author><guid>https://serverkueche.de/en/tutorials/nextcloud-office-collabora/</guid><description>Collabora Online next to Nextcloud 34 behind Traefik: three paths instead of a second subdomain, the WOPI wiring – and the switch for the editor.</description><content:encoded><![CDATA[<p>Word in the browser without the file ever leaving your own metal: that is the part of Nextcloud most
people switch for in the first place. It is also the part that most often just stays blank after the
installation.</p>
<h2 id="what-are-we-building">What are we building?</h2>
<p>We put Collabora Online Development Edition 26.04.6.1.1 next to the Nextcloud 34.0.5 from
parts 1 and 2 and connect the two through the app Nextcloud Office 11.1.3. Afterwards you create
text, spreadsheet and presentation documents in the browser and edit them with someone else at the
same time. All of it runs on your server.</p>
<p>This is part 3 of the Nextcloud series. Part 1 set the instance up, part 2 secured and sped it
up; this one adds the office.</p>
<div class="not-prose my-6 rounded-lg border-l-4 p-4 border-amber-400 bg-amber-50 dark:border-amber-700 dark:bg-amber-900/20">
  <p class="mb-1 flex items-center gap-2 font-semibold text-slate-900 dark:text-white">
    <span aria-hidden="true">⚠️</span>This costs memory
  </p>
  <div class="prose-kitchen text-sm">Collabora is not a small service. Freshly started, the container uses a little over 500 MB,
after the first documents have been opened up to just under 800 MB, on top of Nextcloud,
database and Redis. On a server with 2 GB of RAM
next to an active Nextcloud that gets tight. It is the reason this part assumes a larger VPS than
part 1.</div>
</div>
<h2 id="requirements">Requirements</h2>
<ul>
<li>A running, <a href="/en/tutorials/harden-optimize-nextcloud/">hardened Nextcloud</a> from part 2</li>
<li>The <a href="/en/tutorials/traefik-reverse-proxy/">reverse proxy with Traefik</a> it already runs behind</li>
<li>Access to <code>occ</code> inside the Nextcloud container (<code>docker exec -u www-data nc-app php occ …</code>)</li>
<li>At least 1 GB of free memory on top</li>
</ul>
<div class="not-prose my-6 overflow-hidden rounded-xl border border-paprika-200 bg-paprika-50 dark:border-paprika-800 dark:bg-paprika-900/20"
     data-track-content data-content-name="Affiliate-Box · /en/tutorials/nextcloud-office-collabora/" data-content-piece="VPS 2000 G12.5">
  <div class="flex items-center justify-between border-b border-paprika-200 bg-paprika-100 px-4 py-1.5 text-xs font-semibold uppercase tracking-wide text-paprika-700 dark:border-paprika-800 dark:bg-paprika-900/40 dark:text-paprika-300">
    <span>🍳 Recommendation</span>
    <span title="Links marked with * are affiliate links.">Ad</span>
  </div>
  <div class="flex flex-col gap-4 p-4 sm:flex-row sm:items-center sm:justify-between">
    <div>
      <p class="text-lg font-bold text-slate-900 dark:text-white">VPS 2000 G12.5</p>
      <p class="mt-1 text-sm text-slate-600 dark:text-slate-300">8 vCores · 16 GB RAM · 256 GB SSD</p>
      <p class="mt-1 text-sm font-semibold text-paprika-700 dark:text-paprika-400">from €26.92/month</p>
      <p class="mt-2 text-sm text-slate-600 dark:text-slate-400">Nextcloud 250–450 MB, MariaDB 120–170 MB, Redis 10–30 MB, Collabora 530–790 MB: 1 to 1.5 GB together, more as usage grows.</p>
    </div>
    <a href="https://www.netcup.com/en/server/vps/vps-2000-g12.5-iv-24m-eu?ref=44083#vps-2000-g12.5-iv-12m-eu" rel="sponsored noopener" target="_blank"
   data-track-event="Affiliate|netcup: Affiliate-Box|VPS 2000 G12.5 · {page}"
   class="inline-flex shrink-0 items-center justify-center rounded-lg bg-paprika-600 px-5 py-2.5 font-semibold text-white transition-colors hover:bg-paprika-700">
  Go to netcup →
</a>

  </div><div class="px-4 pb-4"><div class="not-prose my-3 rounded-lg border border-herb-500/40 bg-herb-50 px-3 py-2 text-sm text-slate-700 dark:bg-herb-900/20 dark:text-slate-200"
     data-voucher-api="vps-2000" data-voucher-msg-empty="No code is available for this plan right now – use the €5.95 code." data-voucher-msg-limit="No more codes today – use the €5.95 code or try again tomorrow." data-voucher-msg-error="The code couldn&#39;t be fetched right now – use the €5.95 code."
     data-voucher-hint="Empty the cart first – the code adds the server itself.">
  <p class="flex flex-wrap items-center gap-x-2 gap-y-1"><span>💶 <span class="font-semibold">1 month free</span>:</span>
    <button type="button" data-voucher-reveal data-copy-title="Click to copy"
            class="cursor-pointer rounded bg-white px-2 py-0.5 font-mono text-sm font-semibold text-herb-800 hover:ring-2 hover:ring-herb-500/40 dark:bg-slate-800 dark:text-herb-400">Show code</button>
    <button type="button" data-voucher-next hidden
            class="rounded border border-herb-500/40 px-2 py-0.5 text-xs text-herb-800 hover:bg-white dark:text-herb-400 dark:hover:bg-slate-800">another code</button>
  </p><p class="mt-1 text-xs text-slate-500 dark:text-slate-400" data-voucher-hint-target>
    Single use, valid for VPS 2000 G12.5.
    <a href="https://www.netcup.com/en/checkout/cart?ref=44083" rel="sponsored noopener" target="_blank"
       data-track-event="Affiliate|netcup: Gutschein einlösen|VPS 2000 G12.5 · {page}"
       class="font-medium text-herb-800 underline underline-offset-2 hover:text-herb-900 dark:text-herb-400">Redeem in the cart →</a>
  </p><p class="mt-2 flex flex-wrap items-center gap-x-2 gap-y-1 border-t border-herb-500/30 pt-2">
    <span>💶 <span class="font-semibold">€5.95 voucher</span> for new netcup customers:</span>
    <button type="button" data-voucher-code data-track-voucher="36nc17844976032"
            title="Click to copy" class="cursor-pointer rounded bg-white px-2 py-0.5 font-mono text-sm font-semibold text-herb-800 hover:ring-2 hover:ring-herb-500/40 dark:bg-slate-800 dark:text-herb-400">36nc17844976032</button>
    <span class="text-xs text-slate-500 dark:text-slate-400">always valid · not for domains or VPS Lite</span>
  </p><p class="mt-1 text-xs"><a href="/en/netcup-voucher/" class="font-medium text-herb-800 underline underline-offset-2 hover:text-herb-900 dark:text-herb-400">All netcup vouchers →</a></p>
</div></div>
</div>

<h2 id="step-by-step">Step by step</h2>
<h3 id="step-1-who-actually-talks-to-whom-here">Step 1: Who actually talks to whom here</h3>
<p>Three parts work together, and understanding that saves you half the troubleshooting:</p>
<div class="sk-code">
  <span class="sk-code-head">Ausgabe</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">Browser      loads Collabora&#39;s interface (/browser/…)
</span></span><span class="line"><span class="cl">Collabora    renders the document – but does not have it
</span></span><span class="line"><span class="cl">Nextcloud    has the file and hands it out over the WOPI interface</span></span></code></pre></div>
</div>
<p>The decisive point: Collabora stores nothing. On every open it fetches the file from Nextcloud
over a short-lived, signed WOPI address, keeps it in memory and writes it back there. The container
is therefore stateless; you can recreate it at any time without losing anything.</p>
<p>That also tells you what can go wrong: the browser has to reach Collabora, and Collabora has to
reach Nextcloud. Two directions, two sources of error.</p>
<h3 id="step-2-one-domain-or-two">Step 2: One domain or two?</h3>
<p>The official guide puts Collabora on a subdomain of its own (<code>office.YOUR_DOMAIN</code>). That works, but
costs a DNS record and a second certificate. It also works on the same domain as Nextcloud,
because Collabora only claims three path prefixes:</p>
<div class="sk-code">
  <span class="sk-code-head">Ausgabe</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">/browser    the interface (JavaScript, images, cool.html)
</span></span><span class="line"><span class="cl">/hosting    discovery and capabilities, this is how Nextcloud finds the service
</span></span><span class="line"><span class="cl">/cool       the WebSocket connection while editing</span></span></code></pre></div>
</div>
<p>Nextcloud uses none of them, so there is no overlap.</p>
<p>Both routes work. If you prefer to separate them, drop the path part
from the Traefik rule in step 3 and put <code>office.YOUR_DOMAIN</code> in as the host; in step 5 you then
enter that address as the WOPI URL instead of the Nextcloud address. The editor afterwards loads
from the second domain. The only difference is the extra DNS record and the second
certificate.</p>
<h3 id="step-3-collabora-into-the-stack">Step 3: Collabora into the stack</h3>
<p>Add a fourth service to the <code>compose.yaml</code> from part 1:</p>
<div class="sk-code">
  <span class="sk-code-head">YAML</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-yaml" data-lang="yaml"><span class="line"><span class="cl"><span class="c"># Addition to the Nextcloud compose.yaml</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">collabora</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">image</span><span class="p">:</span><span class="w"> </span><span class="l">collabora/code:26.04.6.1.1</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">container_name</span><span class="p">:</span><span class="w"> </span><span class="l">collabora</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">environment</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="nt">aliasgroup1</span><span class="p">:</span><span class="w"> </span><span class="l">https://cloud\.YOUR_DOMAIN:443</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="nt">server_name</span><span class="p">:</span><span class="w"> </span><span class="l">cloud.YOUR_DOMAIN</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="nt">extra_params</span><span class="p">:</span><span class="w"> </span>--<span class="l">o:ssl.enable=false --o:ssl.termination=true --o:welcome.enable=false --o:mount_jail_tree=false</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="nt">DONT_GEN_SSL_CERT</span><span class="p">:</span><span class="w"> </span><span class="s2">&#34;1&#34;</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="nt">username</span><span class="p">:</span><span class="w"> </span><span class="l">admin</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="nt">password</span><span class="p">:</span><span class="w"> </span><span class="l">A_STRONG_ADMIN_PASSWORD</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">cap_add</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="l">MKNOD]</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">labels</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">traefik.enable=true</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">traefik.docker.network=proxy</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">traefik.http.routers.collabora.rule=Host(`cloud.YOUR_DOMAIN`) &amp;&amp; (PathPrefix(`/browser`) || PathPrefix(`/hosting`) || PathPrefix(`/cool`))</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">traefik.http.routers.collabora.priority=100</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">traefik.http.routers.collabora.entrypoints=websecure</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">traefik.http.routers.collabora.tls.certresolver=le</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">traefik.http.services.collabora.loadbalancer.server.port=9980</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">networks</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="l">proxy]</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">restart</span><span class="p">:</span><span class="w"> </span><span class="l">unless-stopped</span></span></span></code></pre></div>
</div>
<p>And add one line to the existing Nextcloud router so the order is unambiguous:</p>
<div class="sk-code">
  <span class="sk-code-head">YAML</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-yaml" data-lang="yaml"><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">traefik.http.routers.nc.priority=10</span></span></span></code></pre></div>
</div>
<p>The settings one by one:</p>
<ul>
<li><code>aliasgroup1</code> tells Collabora which Nextcloud it may accept requests from; everything else is
rejected. The value is read as a regular expression, which is why the dots are escaped with
<code>\.</code>. The port <code>:443</code> belongs in there.</li>
<li><code>--o:ssl.termination=true</code> is <strong>the most important switch in this whole tutorial</strong>. It tells
Collabora that TLS was already terminated earlier and that it should still emit <code>https://</code>
addresses.</li>
<li><code>--o:ssl.enable=false</code> turns off Collabora&rsquo;s own TLS, Traefik does that.</li>
<li><code>--o:welcome.enable=false</code> is the switch meant for the welcome window that sits in front of
the document after every new version. At the moment it has no effect (more on that under
&ldquo;When it doesn&rsquo;t work&rdquo;). It does no harm, so it stays in.</li>
<li><code>--o:mount_jail_tree=false</code> tells Collabora to copy its system directory for each document
instead of bind-mounting it. The bind mount would need <code>CAP_SYS_ADMIN</code>, one of the most powerful
Linux capabilities, which we don&rsquo;t grant the container. Without the switch Collabora tries anyway
and then shows a server warning in the editor. Copying costs only milliseconds per opened
document.</li>
<li><code>cap_add: [MKNOD]</code> is what Collabora needs to set up its sandbox processes. Without it the
container does not start.</li>
</ul>
<div class="sk-code">
  <span class="sk-code-head">Terminal</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">cd</span> ~/nextcloud
</span></span><span class="line"><span class="cl">docker compose up -d
</span></span><span class="line"><span class="cl">docker compose ps --format <span class="s1">&#39;{{ .Name }}\t{{ .Status }}&#39;</span></span></span></code></pre></div>
</div>
<div class="sk-code">
  <span class="sk-code-head">Ausgabe</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">collabora   Up 45 seconds (healthy)
</span></span><span class="line"><span class="cl">nc-app      Up 45 seconds
</span></span><span class="line"><span class="cl">nc-cron     Up 2 minutes
</span></span><span class="line"><span class="cl">nc-db       Up 3 minutes (healthy)
</span></span><span class="line"><span class="cl">nc-redis    Up 3 minutes</span></span></code></pre></div>
</div>
<h3 id="step-4-check-from-outside-before-touching-nextcloud">Step 4: Check from outside before touching Nextcloud</h3>
<p>Collabora announces its capabilities at two addresses. The first tells you whether the service is
reachable through Traefik at all:</p>
<div class="sk-code">
  <span class="sk-code-head">Terminal</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">curl -s -o /dev/null -w <span class="s2">&#34;%{http_code}\n&#34;</span> https://cloud.YOUR_DOMAIN/hosting/discovery</span></span></code></pre></div>
</div>
<div class="sk-code">
  <span class="sk-code-head">Ausgabe</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">200</span></span></code></pre></div>
</div>
<p>The second check saves you hours later. Look at which addresses Collabora emits for itself:</p>
<div class="sk-code">
  <span class="sk-code-head">Terminal</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">curl -s https://cloud.YOUR_DOMAIN/hosting/discovery <span class="p">|</span> grep -o <span class="s1">&#39;urlsrc=&#34;[^&#34;]*&#34;&#39;</span> <span class="p">|</span> head -1</span></span></code></pre></div>
</div>
<div class="sk-code">
  <span class="sk-code-head">Ausgabe</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">urlsrc=&#34;https://cloud.YOUR_DOMAIN/browser/febe91b271/cool.html?&#34;</span></span></code></pre></div>
</div>
<p>That has to say <strong><code>https://</code></strong>. If it says <code>http://</code>, <code>--o:ssl.termination=true</code> is missing, and
the browser will later block the embed as mixed content without any usable error message anywhere.</p>
<h3 id="step-5-the-app-inside-nextcloud">Step 5: The app inside Nextcloud</h3>
<p>Now the connection from the other side. The app is called <code>richdocuments</code> internally:</p>
<div class="sk-code">
  <span class="sk-code-head">Terminal</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">docker <span class="nb">exec</span> -u www-data nc-app php occ app:install richdocuments</span></span></code></pre></div>
</div>
<div class="sk-code">
  <span class="sk-code-head">Ausgabe</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">richdocuments 11.1.3 installed
</span></span><span class="line"><span class="cl">richdocuments enabled</span></span></code></pre></div>
</div>
<p>If you get <code>richdocuments already installed</code> instead, you already installed the app in part 1 along
with the recommended apps; just carry on with the next command.</p>
<p>Then you tell it where Collabora is. Both values are the same when Collabora runs on the same domain,
as it does here:</p>
<div class="sk-code">
  <span class="sk-code-head">Terminal</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">docker <span class="nb">exec</span> -u www-data nc-app php occ config:app:set richdocuments wopi_url <span class="se">\
</span></span></span><span class="line"><span class="cl">  --value<span class="o">=</span>https://cloud.YOUR_DOMAIN
</span></span><span class="line"><span class="cl">docker <span class="nb">exec</span> -u www-data nc-app php occ config:app:set richdocuments public_wopi_url <span class="se">\
</span></span></span><span class="line"><span class="cl">  --value<span class="o">=</span>https://cloud.YOUR_DOMAIN</span></span></code></pre></div>
</div>
<p>And the counter-test, where Nextcloud checks for itself:</p>
<div class="sk-code">
  <span class="sk-code-head">Terminal</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">docker <span class="nb">exec</span> -u www-data nc-app php occ richdocuments:activate-config</span></span></code></pre></div>
</div>
<div class="sk-code">
  <span class="sk-code-head">Ausgabe</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">✓ Fetched /hosting/discovery endpoint
</span></span><span class="line"><span class="cl">✓ Valid mimetype response
</span></span><span class="line"><span class="cl">✓ Valid capabilities entry
</span></span><span class="line"><span class="cl">✓ Fetched /hosting/capabilities endpoint
</span></span><span class="line"><span class="cl">✓ Detected WOPI server: Collabora Online Development Edition 26.04.6.1
</span></span><span class="line"><span class="cl">…
</span></span><span class="line"><span class="cl">Callback URL (used by Collabora to connect back to Nextcloud):
</span></span><span class="line"><span class="cl">  autodetected (will use the same URL as your user for browsing Nextcloud)</span></span></code></pre></div>
</div>
<p>In the web interface you see the same under <em>Settings → Administration → Office</em>:</p>
<p><figure class="my-6"><img src="/en/tutorials/nextcloud-office-collabora/office-einstellungen_hu_3d81938925b7095a.webp" srcset="/en/tutorials/nextcloud-office-collabora/office-einstellungen_hu_e3810639d65c5e69.webp 480w, /en/tutorials/nextcloud-office-collabora/office-einstellungen_hu_3d81938925b7095a.webp 768w, /en/tutorials/nextcloud-office-collabora/office-einstellungen_hu_6945486dd5443deb.webp 1200w, /en/tutorials/nextcloud-office-collabora/office-einstellungen_hu_19ce29fa6a354bd2.webp 1920w" sizes="(min-width: 768px) 768px, 100vw"
    width="768" height="432"
    data-full="/en/tutorials/nextcloud-office-collabora/office-einstellungen_hu_9c44d1a2abaee5da.webp"
    alt="Nextcloud&rsquo;s Office settings with a green message that the Collabora server is reachable, including the version" title="Green and with a version number: that is what a working connection looks like"
    loading="lazy" decoding="async" class="rounded-lg"><figcaption class="mt-2 text-sm text-center text-slate-500 italic">Green and with a version number: that is what a working connection looks like</figcaption></figure></p>
<p>If Collabora&rsquo;s version is there, the direction Nextcloud → Collabora is right. The other direction
only proves itself with the first document.</p>
<h3 id="step-6-who-may-call-nextcloud-back">Step 6: Who may call Nextcloud back?</h3>
<p>Collabora fetches the file from Nextcloud over the WOPI interface. By default any address may
try. Restrict that to the Docker network Collabora sits in:</p>
<div class="sk-code">
  <span class="sk-code-head">Terminal</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">docker <span class="nb">exec</span> -u www-data nc-app php occ config:app:set richdocuments wopi_allowlist <span class="se">\
</span></span></span><span class="line"><span class="cl">  --value<span class="o">=</span><span class="s1">&#39;172.18.0.0/16&#39;</span></span></span></code></pre></div>
</div>
<p>Docker tells you which network that is:</p>
<div class="sk-code">
  <span class="sk-code-head">Terminal</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">docker network inspect proxy --format <span class="s1">&#39;{{ range .IPAM.Config }}{{ .Subnet }} {{ end }}&#39;</span></span></span></code></pre></div>
</div>
<div class="sk-code">
  <span class="sk-code-head">Ausgabe</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">fd00:cafe::/64 172.18.0.0/16</span></span></code></pre></div>
</div>
<div class="not-prose my-6 rounded-lg border-l-4 p-4 border-amber-400 bg-amber-50 dark:border-amber-700 dark:bg-amber-900/20">
  <p class="mb-1 flex items-center gap-2 font-semibold text-slate-900 dark:text-white">
    <span aria-hidden="true">⚠️</span>The list has to match the route
  </p>
  <div class="prose-kitchen text-sm">Enter the network the request actually arrives from at Nextcloud. If Collabora goes through
Traefik, that is Traefik&rsquo;s address, not Collabora&rsquo;s. Set the list too narrow and the interface
loads while the document stays empty, because fetching the file fails. Leaving it empty is the
insecure but working variant; better to check once and set it correctly.</div>
</div>
<h3 id="step-7-the-first-document">Step 7: The first document</h3>
<p>Open <em>Files</em> and click <em>+ New</em>. If the app is wired correctly, new entries appear there:</p>
<p><figure class="my-6"><img src="/en/tutorials/nextcloud-office-collabora/office-neu-menue_hu_8548c3c84c946fd4.webp" srcset="/en/tutorials/nextcloud-office-collabora/office-neu-menue_hu_6af65f39234ff1c2.webp 480w, /en/tutorials/nextcloud-office-collabora/office-neu-menue_hu_8548c3c84c946fd4.webp 768w, /en/tutorials/nextcloud-office-collabora/office-neu-menue_hu_fb5fbcc93d8b2a58.webp 1200w, /en/tutorials/nextcloud-office-collabora/office-neu-menue_hu_64fd36a59c2d77e3.webp 1920w" sizes="(min-width: 768px) 768px, 100vw"
    width="768" height="432"
    data-full="/en/tutorials/nextcloud-office-collabora/office-neu-menue_hu_ef63c12a5ed6c174.webp"
    alt="The New menu in Nextcloud&rsquo;s file manager with the entries Document, Presentation, Spreadsheet and Diagram" title="Document, Presentation and Spreadsheet only appear once Nextcloud Office is active"
    loading="lazy" decoding="async" class="rounded-lg"><figcaption class="mt-2 text-sm text-center text-slate-500 italic">Document, Presentation and Spreadsheet only appear once Nextcloud Office is active</figcaption></figure></p>
<p>Nextcloud asks for a file name and then opens the editor straight away:</p>
<p><figure class="my-6"><img src="/en/tutorials/nextcloud-office-collabora/office-editor_hu_f762db4eb8e2ee1d.webp" srcset="/en/tutorials/nextcloud-office-collabora/office-editor_hu_ece060213e2540ca.webp 480w, /en/tutorials/nextcloud-office-collabora/office-editor_hu_f762db4eb8e2ee1d.webp 768w, /en/tutorials/nextcloud-office-collabora/office-editor_hu_de1cbd6f8926cafc.webp 1200w, /en/tutorials/nextcloud-office-collabora/office-editor_hu_261918890f8477e8.webp 1920w" sizes="(min-width: 768px) 768px, 100vw"
    width="768" height="432"
    data-full="/en/tutorials/nextcloud-office-collabora/office-editor_hu_57bb850f8946dfe8.webp"
    alt="The Collabora editor in the browser with a full toolbar and a German-language document" title="The finished editor: toolbar at the top, document name in the middle, word count at the bottom left"
    loading="lazy" decoding="async" class="rounded-lg"><figcaption class="mt-2 text-sm text-center text-slate-500 italic">The finished editor: toolbar at the top, document name in the middle, word count at the bottom left</figcaption></figure></p>
<p>Page number, word count and language sit at the bottom left. This is not a picture but LibreOffice
computing on your server and sending the result into the browser as image tiles.</p>
<div class="not-prose my-6 rounded-lg border-l-4 p-4 border-herb-400 bg-herb-50 dark:border-herb-700 dark:bg-herb-900/20">
  <p class="mb-1 flex items-center gap-2 font-semibold text-slate-900 dark:text-white">
    <span aria-hidden="true">🧑‍🍳</span>ODF instead of OOXML
  </p>
  <div class="prose-kitchen text-sm">Nextcloud creates new files as <code>.docx</code>/<code>.xlsx</code> by default, see the caption in the screenshot above.
If you do not need a Microsoft format, turn off <em>&ldquo;Use Office Open XML (OOXML) instead of
OpenDocument Format (ODF) by default for new files&rdquo;</em> in the Office settings. ODF is the format
LibreOffice and Collabora speak natively; every conversion is an opportunity to lose formatting.</div>
</div>
<h3 id="step-8-two-people-in-the-same-document">Step 8: Two people in the same document</h3>
<p>The actual reason for Collabora is simultaneous editing. Share the file with a second account and
open it there. The initials of everyone involved appear at the top right:</p>
<p><figure class="my-6"><img src="/en/tutorials/nextcloud-office-collabora/office-gemeinsam_hu_cd4eac885db78ed3.webp" srcset="/en/tutorials/nextcloud-office-collabora/office-gemeinsam_hu_67fdae41ab317739.webp 480w, /en/tutorials/nextcloud-office-collabora/office-gemeinsam_hu_cd4eac885db78ed3.webp 768w, /en/tutorials/nextcloud-office-collabora/office-gemeinsam_hu_b5afacba5b654797.webp 1200w, /en/tutorials/nextcloud-office-collabora/office-gemeinsam_hu_4ab471386369d844.webp 1920w" sizes="(min-width: 768px) 768px, 100vw"
    width="768" height="432"
    data-full="/en/tutorials/nextcloud-office-collabora/office-gemeinsam_hu_1a2ebaae572ee068.webp"
    alt="The Collabora editor with two participant initials at the top right and a newly added line in the document" title="Two accounts in the same document – the initials at the top right show who is reading along"
    loading="lazy" decoding="async" class="rounded-lg"><figcaption class="mt-2 text-sm text-center text-slate-500 italic">Two accounts in the same document – the initials at the top right show who is reading along</figcaption></figure></p>
<p>Changes show up on the other side without a reload. Saving happens automatically back to Nextcloud,
and the file&rsquo;s version history keeps running along as usual.</p>
<h3 id="step-9-restrict-before-everyone-piles-in">Step 9: Restrict before everyone piles in</h3>
<p>Two settings in the Office settings are worth touching before you unlock it:</p>
<p><em>&ldquo;Restrict usage to specific groups&rdquo;</em> keeps the memory footprint small while only some of your
accounts need Office. Every simultaneously open file costs Collabora memory.</p>
<p>With <em>&ldquo;Restrict edit to specific groups&rdquo;</em> everyone else may only view documents. That is the
sensible default if you also share files with guests.</p>
<h2 id="when-it-doesnt-work">When it doesn&rsquo;t work</h2>
<div class="troubleshoot not-prose">
<p><strong>The editor opens but stays blank, and the browser console says something about &ldquo;Mixed Content&rdquo;.</strong> Then Collabora is emitting <code>http://</code> addresses even though the page runs over HTTPS. Check that without a browser: <code>curl -s https://cloud.YOUR_DOMAIN/hosting/discovery | grep -o 'urlsrc=&quot;[^&quot;]*&quot;' | head -1</code>. If it says <code>http://</code>, <code>--o:ssl.termination=true</code> is missing from <code>extra_params</code>. That switch tells Collabora that Traefik already handled TLS – without it, it considers itself a plain HTTP service and writes that into its discovery document.</p>
<p><strong>The Office settings report &ldquo;Collabora Online Server is not reachable&rdquo;.</strong> First check with <code>curl -s -o /dev/null -w &quot;%{http_code}&quot; https://cloud.YOUR_DOMAIN/hosting/discovery</code> whether the service comes through Traefik at all; a <code>404</code> means the path rule does not match, a <code>502</code> means the container is not running. If you get <code>200</code> and Nextcloud still reports an error, <code>aliasgroup1</code> does not match the address: the value is a regular expression, has to contain the port <code>:443</code> and escape the domain with <code>\.</code>.</p>
<p><strong>The document loads but stays empty, or you get &ldquo;Document could not be loaded&rdquo;.</strong> That is the other direction: Collabora cannot reach Nextcloud. The most common cause is a <code>wopi_allowlist</code> that is too narrow – check with <code>docker exec -u www-data nc-app php occ config:app:get richdocuments wopi_allowlist</code> whether the network entered is really the one the request comes from. To narrow it down, empty the list briefly; if it loads then, the list was the problem.</p>
<p><strong>The container does not start and exits immediately.</strong> Collabora needs <code>cap_add: [MKNOD]</code> to create its sandbox processes. Without that line the start aborts before anything is even listening. The logs only mention it in passing – <code>docker compose logs collabora | head -30</code> shows it.</p>
<p><strong>A notice at the bottom of the editor asks you to check your server&rsquo;s warnings.</strong> Only admins see it, and behind <strong>Open</strong> is Collabora&rsquo;s server audit. If it reports a slow jail setup by copying because bind-mounting isn&rsquo;t possible, <code>--o:mount_jail_tree=false</code> is missing from <code>extra_params</code>. Collabora then attempts a bind mount for which the container would need <code>CAP_SYS_ADMIN</code> – which we deliberately don&rsquo;t grant. With the switch, Collabora copies from the start and the audit reports no problems. The container log still shows one <code>Failed to exec coolmount</code> line at startup, immediately followed by <code>Disabling Bind-Mounting … per mount_jail_tree config</code> – that one is harmless.</p>
<p><strong>A welcome window sits on top of the document on the first open.</strong> That is Collabora&rsquo;s pointer to the new version. It appears <strong>once per browser</strong> and is gone there after being dismissed; a fresh browser profile gets it again. So every team member sees it once, and again after an update. <code>--o:welcome.enable=false</code> in <code>extra_params</code> is the switch meant for this; in version 26.04.6.1 too, the window appears <strong>despite the switch being set</strong>. If it bothers you, plan for the questions rather than relying on the setting.</p>

</div>
<p class="mt-3 text-sm text-slate-500 dark:text-slate-400">
  Your problem is not listed?
  <a href="/en/errors/" class="font-medium text-paprika-700 hover:underline dark:text-paprika-400">Search all error messages →</a>
</p>

<h2 id="maintenance--backups">Maintenance &amp; backups</h2>
<p>Updates concern two things separately. Collabora publishes a new CODE version roughly every four
weeks:</p>
<div class="sk-code">
  <span class="sk-code-head">Terminal</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">cd</span> ~/nextcloud
</span></span><span class="line"><span class="cl">sed -i <span class="s1">&#39;s|collabora/code:26.04.6.1.1|collabora/code:NEW_VERSION|&#39;</span> compose.yaml
</span></span><span class="line"><span class="cl">docker compose pull collabora <span class="o">&amp;&amp;</span> docker compose up -d collabora
</span></span><span class="line"><span class="cl">curl -s https://cloud.YOUR_DOMAIN/hosting/discovery <span class="p">|</span> grep -o <span class="s1">&#39;urlsrc=&#34;[^&#34;]*&#34;&#39;</span> <span class="p">|</span> head -1</span></span></code></pre></div>
</div>
<p>The last command is the acceptance test: after every update the identifier in the path
(<code>/browser/febe91b271/</code>) has a new value, and <code>https://</code> still has to be there. You update the
Nextcloud Office app separately through the app store or with <code>occ app:update richdocuments</code>.
Keep the two roughly in step: a very old app with a very new CODE is the most common cause of
features that suddenly go missing.</p>
<p>You have to back up nothing for Collabora. The container is stateless and holds no documents,
no database and no configuration outside the <code>compose.yaml</code>. What belongs in the backup already
belongs to Nextcloud:</p>
<div class="sk-code">
  <span class="sk-code-head">Ausgabe</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">~/nextcloud/compose.yaml      # now also contains the Collabora settings
</span></span><span class="line"><span class="cl">nc_html volume + database     # as described in part 1</span></span></code></pre></div>
</div>
<p>The Office app&rsquo;s settings live in the Nextcloud database and are therefore part of the normal dump.</p>
<p>Memory is the actual maintenance task. This is what the containers use:</p>
<div class="sk-code">
  <span class="sk-code-head">Ausgabe</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">collabora  around 530 MB freshly started, 540–790 MB once documents have been open
</span></span><span class="line"><span class="cl">nc-app     250–450 MB in use
</span></span><span class="line"><span class="cl">nc-db      120–170 MB
</span></span><span class="line"><span class="cl">nc-redis    10–30 MB</span></span></code></pre></div>
</div>
<p>Every simultaneously open file costs extra. When the server gets tight, restricting to specific
groups from step 9 is the most effective lever, ahead of any fine-tuning. Collabora does clean up
its processes after closing, but not instantly; a look with <code>docker stats --no-stream</code> after a busy
day tells you where you really stand.</p>
<p>The effort in operation: one update a month, about ten minutes including the counter-test. Plus a look
once a quarter to see whether CODE and the app still match. Collabora creates no ongoing work; it
has nothing that could grow.</p>
]]></content:encoded></item></channel></rss>