From 5fb59c6f9b19152470d87aa9a3c2a507f93c941e Mon Sep 17 00:00:00 2001 From: yuancheng Date: Tue, 6 Jun 2023 17:38:11 +0800 Subject: [PATCH] add the sample of config. --- config.toml.sample | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 config.toml.sample diff --git a/config.toml.sample b/config.toml.sample new file mode 100644 index 0000000..279b339 --- /dev/null +++ b/config.toml.sample @@ -0,0 +1,36 @@ +[cli] +ipfsGateway = "chainstorage-gateway.solarfs.io/ipfs/" +ggcscmdPath = '' +useHttpsProtocol = "https" +bucketPrefix = 'cs://' +listOffset = 20 +cleanTmpData = true +maxRetries = 3 +retryDelay = 3 + +[sdk] +defaultRegion = 'hk-1' +timeZone = 'UTC +08:00' +#链存服务API地址 +chainStorageApiEndpoint = 'chainstorage-api.solarfs.io' +#CAR文件工作目录 +carFileWorkPath = './tmp/carfile' +#CAR文件分片阈值 +carFileShardingThreshold = 1048576 +#链存服务API token +chainStorageApiToken = '' +#HTTP request user agent (K2请求需要) +httpRequestUserAgent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36' +#HTTP request overtime +httpRequestOvertime = 30 +carVersion = 1 + +[logger] +logPath = './logs' +mode = 'debug' +level = 'info' +isOutPutFile = true +maxAgeDay = 7 +rotationTime = 1 +useJson = true +loggerFile= 'chainstorage-cli-log'