github.com/suchongming/fabric@v2.1.1+incompatible/integration/nwo/core_template.go (about) 1 /* 2 Copyright IBM Corp. All Rights Reserved. 3 4 SPDX-License-Identifier: Apache-2.0 5 */ 6 7 package nwo 8 9 const DefaultCoreTemplate = `--- 10 logging: 11 format: '%{color}%{time:2006-01-02 15:04:05.000 MST} [%{module}] %{shortfunc} -> %{level:.4s} %{id:03x}%{color:reset} %{message}' 12 13 peer: 14 id: {{ Peer.ID }} 15 networkId: {{ .NetworkID }} 16 address: 127.0.0.1:{{ .PeerPort Peer "Listen" }} 17 addressAutoDetect: true 18 listenAddress: 127.0.0.1:{{ .PeerPort Peer "Listen" }} 19 chaincodeListenAddress: 0.0.0.0:{{ .PeerPort Peer "Chaincode" }} 20 keepalive: 21 minInterval: 60s 22 client: 23 interval: 60s 24 timeout: 20s 25 deliveryClient: 26 interval: 60s 27 timeout: 20s 28 gossip: 29 bootstrap: 127.0.0.1:{{ .PeerPort Peer "Listen" }} 30 useLeaderElection: true 31 orgLeader: false 32 membershipTrackerInterval: 5s 33 endpoint: 34 maxBlockCountToStore: 100 35 maxPropagationBurstLatency: 10ms 36 maxPropagationBurstSize: 10 37 propagateIterations: 1 38 propagatePeerNum: 3 39 pullInterval: 4s 40 pullPeerNum: 3 41 requestStateInfoInterval: 4s 42 publishStateInfoInterval: 4s 43 stateInfoRetentionInterval: 44 publishCertPeriod: 10s 45 dialTimeout: 3s 46 connTimeout: 2s 47 recvBuffSize: 20 48 sendBuffSize: 200 49 digestWaitTime: 1s 50 requestWaitTime: 1500ms 51 responseWaitTime: 2s 52 aliveTimeInterval: 5s 53 aliveExpirationTimeout: 25s 54 reconnectInterval: 25s 55 externalEndpoint: 127.0.0.1:{{ .PeerPort Peer "Listen" }} 56 election: 57 startupGracePeriod: 15s 58 membershipSampleInterval: 1s 59 leaderAliveThreshold: 10s 60 leaderElectionDuration: 5s 61 pvtData: 62 pullRetryThreshold: 7s 63 transientstoreMaxBlockRetention: 1000 64 pushAckTimeout: 3s 65 btlPullMargin: 10 66 reconcileBatchSize: 10 67 reconcileSleepInterval: 10s 68 reconciliationEnabled: true 69 skipPullingInvalidTransactionsDuringCommit: false 70 implicitCollectionDisseminationPolicy: 71 requiredPeerCount: 0 72 maxPeerCount: 1 73 state: 74 enabled: true 75 checkInterval: 10s 76 responseTimeout: 3s 77 batchSize: 10 78 blockBufferSize: 100 79 maxRetries: 3 80 events: 81 address: 127.0.0.1:{{ .PeerPort Peer "Events" }} 82 buffersize: 100 83 timeout: 10ms 84 timewindow: 15m 85 keepalive: 86 minInterval: 60s 87 tls: 88 enabled: true 89 clientAuthRequired: {{ .ClientAuthRequired }} 90 cert: 91 file: {{ .PeerLocalTLSDir Peer }}/server.crt 92 key: 93 file: {{ .PeerLocalTLSDir Peer }}/server.key 94 clientCert: 95 file: {{ .PeerLocalTLSDir Peer }}/server.crt 96 clientKey: 97 file: {{ .PeerLocalTLSDir Peer }}/server.key 98 rootcert: 99 file: {{ .PeerLocalTLSDir Peer }}/ca.crt 100 clientRootCAs: 101 files: 102 - {{ .PeerLocalTLSDir Peer }}/ca.crt 103 authentication: 104 timewindow: 15m 105 fileSystemPath: filesystem 106 BCCSP: 107 Default: SW 108 SW: 109 Hash: SHA2 110 Security: 256 111 FileKeyStore: 112 KeyStore: 113 mspConfigPath: {{ .PeerLocalMSPDir Peer }} 114 localMspId: {{ (.Organization Peer.Organization).MSPID }} 115 deliveryclient: 116 reconnectTotalTimeThreshold: 3600s 117 localMspType: bccsp 118 profile: 119 enabled: false 120 listenAddress: 127.0.0.1:{{ .PeerPort Peer "ProfilePort" }} 121 handlers: 122 authFilters: 123 - name: DefaultAuth 124 - name: ExpirationCheck 125 decorators: 126 - name: DefaultDecorator 127 endorsers: 128 escc: 129 name: DefaultEndorsement 130 validators: 131 vscc: 132 name: DefaultValidation 133 validatorPoolSize: 134 discovery: 135 enabled: true 136 authCacheEnabled: true 137 authCacheMaxSize: 1000 138 authCachePurgeRetentionRatio: 0.75 139 orgMembersAllowedAccess: false 140 limits: 141 concurrency: 142 endorserService: 100 143 deliverService: 100 144 145 vm: 146 endpoint: unix:///var/run/docker.sock 147 docker: 148 tls: 149 enabled: false 150 ca: 151 file: docker/ca.crt 152 cert: 153 file: docker/tls.crt 154 key: 155 file: docker/tls.key 156 attachStdout: true 157 hostConfig: 158 NetworkMode: host 159 LogConfig: 160 Type: json-file 161 Config: 162 max-size: "50m" 163 max-file: "5" 164 Memory: 2147483648 165 166 chaincode: 167 builder: $(DOCKER_NS)/fabric-ccenv:$(PROJECT_VERSION) 168 pull: false 169 golang: 170 runtime: $(DOCKER_NS)/fabric-baseos:$(PROJECT_VERSION) 171 dynamicLink: false 172 car: 173 runtime: $(DOCKER_NS)/fabric-baseos:$(PROJECT_VERSION) 174 java: 175 runtime: $(DOCKER_NS)/fabric-javaenv:latest 176 node: 177 runtime: $(DOCKER_NS)/fabric-nodeenv:latest 178 installTimeout: 300s 179 startuptimeout: 300s 180 executetimeout: 30s 181 mode: net 182 keepalive: 0 183 system: 184 _lifecycle: enable 185 cscc: enable 186 lscc: enable 187 qscc: enable 188 logging: 189 level: info 190 shim: warning 191 format: '%{color}%{time:2006-01-02 15:04:05.000 MST} [%{module}] %{shortfunc} -> %{level:.4s} %{id:03x}%{color:reset} %{message}' 192 externalBuilders: {{ range .ExternalBuilders }} 193 - path: {{ .Path }} 194 name: {{ .Name }} 195 environmentWhitelist: {{ range .EnvironmentWhitelist }} 196 - {{ . }} 197 {{- end }} 198 {{- end }} 199 200 ledger: 201 blockchain: 202 state: 203 stateDatabase: goleveldb 204 couchDBConfig: 205 couchDBAddress: 127.0.0.1:5984 206 username: 207 password: 208 maxRetries: 3 209 maxRetriesOnStartup: 10 210 requestTimeout: 35s 211 queryLimit: 10000 212 maxBatchUpdateSize: 1000 213 warmIndexesAfterNBlocks: 1 214 history: 215 enableHistoryDatabase: true 216 217 operations: 218 listenAddress: 127.0.0.1:{{ .PeerPort Peer "Operations" }} 219 tls: 220 enabled: true 221 cert: 222 file: {{ .PeerLocalTLSDir Peer }}/server.crt 223 key: 224 file: {{ .PeerLocalTLSDir Peer }}/server.key 225 clientAuthRequired: {{ .ClientAuthRequired }} 226 clientRootCAs: 227 files: 228 - {{ .PeerLocalTLSDir Peer }}/ca.crt 229 metrics: 230 provider: {{ .MetricsProvider }} 231 statsd: 232 network: udp 233 address: {{ if .StatsdEndpoint }}{{ .StatsdEndpoint }}{{ else }}127.0.0.1:8125{{ end }} 234 writeInterval: 5s 235 prefix: {{ ReplaceAll (ToLower Peer.ID) "." "_" }} 236 `