Governate
Sign in Start a trial

Quick start

This gets one installation running on a single machine, with everything stored beside the program. It is right for trying the product; for real use read Configuration first.

1. Start the server

governate-server -data ./data \
  -addr 0.0.0.0:8080 \
  -public-url https://docs.example.com

-public-url is the address people will type. It is written into every protected file, so choose it before protecting real files. Put a TLS-terminating proxy in front of the server; the server itself speaks plain HTTP to that proxy.

2. Set it up in the browser

Open the address. A new installation has no accounts, and nothing is created in advance. The page asks two things: where records and keys are kept (the defaults are a built-in database and a key file; choose PostgreSQL or OpenBao here if you want them), and who the first administrator is, by email and password or through Google or Microsoft. See Infrastructure.

Do this straight awayUntil the first administrator exists, anyone who can reach the address can become it. Set the installation up before opening it to your network. The screen is shown once and never again.

To create the administrator without a browser, run this once before starting the server:

GOVERNATE_ADMIN_PASSWORD='a long password' \
  governate-server -data ./data -create-admin [email protected]

3. Import your licence

Setup asks for the licence first: paste the text from your Governate customer portal. Later licences are added under Licence. Until a licence is imported nobody can protect or open files.

4. Add people

Open Users and add members and guests. See Users and roles.

5. Protect a file

Open Files and drop files onto the box, or use the command-line tool:

governate login https://docs.example.com
governate protect -upload report.docx
governate share report.docx.gvf [email protected]

Optional: the document viewer

To let people read documents in the browser, run the viewer container and tell the server where it is. See Document viewer.