ApiCoreInterfaces
Interface: HostConfig
Defined in: packages/core/src/node/host.ts:113
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
allow? | readonly | readonly string[] | The accounts this host carries for, and no others. Absent: any account whose subscription is paid. | packages/core/src/node/host.ts:124 |
free? | readonly | boolean | Every subscription counts as paid: for someone hosting only themselves, and for trying it out | packages/core/src/node/host.ts:122 |
full? | readonly | (carrySpace) => boolean | Whether a carry space's subscription may take no more spaces: the host's storage limit | packages/core/src/node/host.ts:134 |
graceDays? | readonly | number | Days a lapsed subscription is kept, carried, before it is dropped. Default 30. | packages/core/src/node/host.ts:120 |
ignore? | readonly | (account) => boolean | Promise<boolean> | Accounts whose writes are not counted: the host's own bots | packages/core/src/node/host.ts:142 |
key | readonly | CryptoKeyPair | The host's own key: who it is to peers | packages/core/src/node/host.ts:115 |
limits? | readonly | HostLimits | Free hosting within limits (spec 08 §1.1). Ignored with free. | packages/core/src/node/host.ts:136 |
measure? | readonly | (spaceId) => Promise<number> | How many bytes a carried space takes: what the free line's bytes reads | packages/core/src/node/host.ts:138 |
mirror? | readonly | BlobStore | The host's bucket (storage/blob/s3.ts): every carried space and the subscriptions are kept there too, so the host's disk is only a cache. | packages/core/src/node/host.ts:131 |
network? | readonly | NodeNetworkConfig | - | packages/core/src/node/host.ts:117 |
now? | readonly | () => number | Unix seconds now; for tests | packages/core/src/node/host.ts:126 |
provider? | readonly | CryptoProvider | - | packages/core/src/node/host.ts:118 |
spacesPerCarry? | readonly | number | Spaces one account's carry space may have carried at most: those it names past that wait | packages/core/src/node/host.ts:140 |
stores | readonly | StoreFactory | - | packages/core/src/node/host.ts:116 |
watchIntervalMs? | readonly | number | - | packages/core/src/node/host.ts:132 |