Governate
Sign in Start a trial

Document viewer

The viewer is a separate container that draws documents in the browser. It is built from the open-source Collabora Online, without branding. The server stays in charge: the viewer only gets a document when the server has decided a particular person may see it, and for that viewing only.

Wiring

GOVERNATE_VIEWER_URL=https://viewer.example.com
GOVERNATE_WOPI_URL=http://governate.internal:8080

The viewer must be configured to accept your server as its document source and your public address as the page allowed to embed it.

What happens when someone opens a file

Where readable content exists

While a document is open, its readable content is in the viewer's memory and working files. Treat the viewer's machine like the server's: on your network, with no access for anyone who should not see documents.

Without a viewer

Leave GOVERNATE_VIEWER_URL empty. Protecting, sharing, permissions and the command-line tool all work. Text files still open in the browser, because this website shows them itself (see Protecting files); documents do not.