For your server

Add ElixirOffice to your Nextcloud

The ElixirOffice document server lets everyone on your Nextcloud open and edit Word, Excel and PowerPoint files together in the browser. It runs on your own server, in one Docker container, and connects through the standard ONLYOFFICE app for Nextcloud.

What you need

  • A Linux x86_64 server with Docker. Start with 4 CPU cores, 8 GB of RAM and 40 GB of free disk.
  • A web address with HTTPS for the document server, for example office.example.org, reachable by your Nextcloud server and by your users' browsers.
  • Administrator access to your Nextcloud.
  1. Start the document server

    Create a secret key, then start the container with it. Keep the key: Nextcloud needs the same one.

    openssl rand -hex 24
    docker run -d --name elixiroffice --restart unless-stopped \
      -p 8080:80 \
      -e JWT_ENABLED=true \
      -e JWT_SECRET=your-secret-key \
      -e JWT_HEADER=Authorization \
      -v elixiroffice-data:/var/www/onlyoffice/Data \
      ghcr.io/leag1234/elixiroffice-server:v0.9.2

    The first start takes a few minutes. The server is ready when this command answers true:

    curl http://localhost:8080/healthcheck
  2. Put it behind HTTPS

    Serve the container through your web server on its own address. With nginx, this location block forwards the editor's live connection:

    location / {
        proxy_pass http://127.0.0.1:8080;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-Host $host;
        proxy_set_header X-Forwarded-Proto $scheme;
        client_max_body_size 100m;
    }
  3. Connect Nextcloud

    In Nextcloud, install the ONLYOFFICE app (Apps, Office & text). Then open Administration settings, ONLYOFFICE, fill in these two fields and save. Nextcloud checks the connection right away.

    • Document Editing Service address https://office.example.org/
    • Secret key the key you created in step 1
  4. Open a document

    In Files, click any .docx, .xlsx or .pptx file. It opens in ElixirOffice, and several people can edit it at the same time.

Tested with

  • Nextcloud 33 · ONLYOFFICE app 10.2.1
  • Nextcloud 23 · ONLYOFFICE app 7.4.0

Update

Pull the new version tag, remove the container and start it again with the same command, the same volume and the same secret key. Your documents stay in Nextcloud.

Verify the image

Registry digest of this version:

sha256:6988de7df811409ae31c1c6e7c56e29e84affefd916b2ca96b2ddfd3413f0831

← Back to ElixirOffice