Skip to content

Instantly share code, notes, and snippets.

@danwbyrne
Last active June 21, 2019 16:48
Show Gist options
  • Save danwbyrne/c6ee99309fea79d90ac3044c0e6c25fe to your computer and use it in GitHub Desktop.
Save danwbyrne/c6ee99309fea79d90ac3044c0e6c25fe to your computer and use it in GitHub Desktop.
node config proposal
{
"SETTINGS": {
"type": string,
"privateNet": boolean,
"address": string,
"secondsPerBlock": number,
"standbyValidators": string[]
},
"ENVIRONMENT": {
"dataPath": string,
"chainFile": string,
"dumpChainFile": string,
"monitor": string,
"haltOnSync": boolean,
"levelDownOptions": ???,
"telemetry?": {
"port": number
}
},
"RPC": {
"http?": {
"port": number,
"host": string
},
"https?": {
"port": number,
"host": string,
"cert": string,
"key": string
},
"splashScreen?" string,
// observable options
"server?": {
"keepAliveTimeout": number,
},
"liveHealthCheck?": {
"rpcURLs?": string[],
"offset?": number,
"timeoutMS?": number,
"checkEndpoints?": number
},
"readyHealthCheck?": {
"rpcURLs?": string[],
"offset?": number,
"timeoutMS?": number,
"checkEndpoints?": number
},
"tooBusyCheck?": {
"enabled": boolean,
"interval?": number,
"maxLag?": number
},
"rateLimit?": {
"enabled": boolean,
"duration?": number,
"max?": number
}
},
"node": {
"externalPort?": number,
// observable options
"rpcURLs?": string[],
"consensus?": {
"enabled": boolean,
"privateKey": string,
"privateNet": boolean
}
},
"BACKUP": {
"tmpPath?": string,
"readyPath?": string,
// observable options
"restore?": boolean,
"cronSchedule?": string,
"provider?": {
"gcloud?": {
"projectID": string,
"bucket": string,
"prefix": string,
"keepBackupCount?": number,
"maxSizeBytes?": number
},
"mega?": {
"download?": {
"id": string,
"key": string
},
"upload?": {
"email": string,
"password": string,
"file": string
}
}
}
},
"NETWORK": {
"listenTCP": {
"port": number,
"host?": string
},
// observable options
"seeds?": string[],
"peerSeeds?": string[],
"externalEndpoints?": string[],
"maxConnectedPeers?": number,
"connectPeersDelayMS?": number,
"socketTimeoutMS?": number
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment