Remotes
Remotes are declared in 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:
$ nt push backupRemote 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 variable | Description |
|---|---|
NT_S3_ACCESS_KEY | S3 Access key |
NT_S3_SECRET_KEY | S3 Secret key |