Skip to content

Remotes

Remotes are declared in config.jsonnet:

config.jsonnet
{
remotes: [
{
name: "backup"
type: "s3",
endpoint: "s3.filebase.com",
bucketName: "my-own-notes",
secure: true, // Enforce HTTPS
},
],
}

All committed objects using nt commit can be pushed to a remote using the command nt push:

Terminal window
$ nt push backup

Remote Types

s3

The remote S3 pushes/pulles objects from a bucket in an object storage. The code relies on Minio and most object storage products are supported.

The above example illustrates the configuration when using Filebase. Credentials must be passed as environment variables.

Environment variableDescription
NT_S3_ACCESS_KEYS3 Access key
NT_S3_SECRET_KEYS3 Secret key