Skip to main content

Interface: SpacesOptions

DigitalOcean Spaces options. Access key is required, define DO_KEY_ID and DO_SECRET_KEY environment variables.

Extends​

Properties​

acl?​

readonly optional acl?: "private" | "public-read" | null

The ACL. Set to null to not add.

Default​

public-read

Inherited from​

BaseS3Options.acl


channel?​

optional channel?: string | null

The update channel.

Default​

latest

Inherited from​

BaseS3Options.channel


maxUpdateInfoSize?​

readonly optional maxUpdateInfoSize?: number | null

The largest channel file (latest*.yml) electron-updater reads, in bytes: it is read into memory and parsed before anything verifies it. A larger one fails the update check with ERR_UPDATER_RESPONSE_TOO_LARGE. Release feeds and provider API responses (release listings and lookups) are not limited. Written into app-update.yml, so installed apps use it; autoUpdater.maxUpdateInfoSize overrides it at runtime. A positive integer, or 0 for no limit.

Default​

10485760

Inherited from​

BaseS3Options.maxUpdateInfoSize


name​

readonly name: string

The space name: 3-63 letters, digits and dashes, starting with a letter or digit.


path?​

readonly optional path?: string | null

The directory path.

Default​

/

Inherited from​

BaseS3Options.path


provider​

readonly provider: "spaces"

The provider. Must be spaces.

Overrides​

BaseS3Options.provider


publishAutoUpdate?​

readonly optional publishAutoUpdate?: boolean

Whether to publish auto update info files.

Auto update relies only on the first provider in the list (you can specify several publishers). Thus, probably, theres no need to upload the metadata files for the other configured providers. But by default will be uploaded. A provider with falsenever becomes the feed embedded inapp-update.yml` while a later provider receives the metadata: the first provider that does is embedded instead.

Default​

true

Inherited from​

BaseS3Options.publishAutoUpdate


region​

readonly region: string

The DigitalOcean region slug (e.g. nyc3): three letters followed by one or two digits.


requestHeaders?​

readonly optional requestHeaders?: OutgoingHttpHeaders

Any custom request headers

Inherited from​

BaseS3Options.requestHeaders


timeout?​

readonly optional timeout?: number | null

Request timeout in milliseconds. (Default is 2 minutes; O is ignored)

Default​

120000

Inherited from​

BaseS3Options.timeout