Governate
Sign in Start a trial

Storage

Protected files that are stored on the server go to the store you choose with GOVERNATE_FILES. Whatever the store, it only ever holds .gvf files: encrypted, with their keys kept elsewhere.

A folder

GOVERNATE_FILES=dir
GOVERNATE_FILES_DIR=/srv/governate/files

The default, in the data folder.

S3 and compatible stores

Works with AWS S3, Google Cloud Storage's S3 interface, SeaweedFS, MinIO, Ceph and other S3-compatible stores.

GOVERNATE_FILES=s3
GOVERNATE_S3_ENDPOINT=https://s3.eu-central-1.amazonaws.com
GOVERNATE_S3_REGION=eu-central-1
GOVERNATE_S3_BUCKET=governate
GOVERNATE_S3_ACCESS_KEY=...
GOVERNATE_S3_SECRET_KEY=...
VariableMeaning
GOVERNATE_S3_PREFIXOptional. Keeps the files under one prefix in a shared bucket.
GOVERNATE_S3_PATH_STYLEtrue by default, which suits self-run stores. Set false for stores that want the bucket in the host name.

Give the access key rights to read, write and delete objects in that bucket or prefix only.

Google Drive

Uses a service account that you create. Share one Drive folder with that account.

GOVERNATE_FILES=gdrive
GOVERNATE_GDRIVE_CREDENTIALS=/etc/governate/service-account.json
GOVERNATE_GDRIVE_FOLDER_ID=...

OneDrive and SharePoint

Uses an application that you register in your Entra tenant, with application permission to the drive.

GOVERNATE_FILES=onedrive
GOVERNATE_ONEDRIVE_TENANT_ID=...
GOVERNATE_ONEDRIVE_CLIENT_ID=...
GOVERNATE_ONEDRIVE_CLIENT_SECRET=...
GOVERNATE_ONEDRIVE_DRIVE_ID=...
GOVERNATE_ONEDRIVE_FOLDER=Governate

NewThe Google Drive and OneDrive stores are recent additions. Try them with test files in your own tenant before relying on them.

Size

A protected file can be up to 1 GiB.