github.com/anjalikarhana/fabric@v2.1.1+incompatible/integration/nwo/orderer_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 DefaultOrdererTemplate = `--- 10 {{ with $w := . -}} 11 General: 12 ListenAddress: 127.0.0.1 13 ListenPort: {{ .OrdererPort Orderer "Listen" }} 14 TLS: 15 Enabled: true 16 PrivateKey: {{ $w.OrdererLocalTLSDir Orderer }}/server.key 17 Certificate: {{ $w.OrdererLocalTLSDir Orderer }}/server.crt 18 RootCAs: 19 - {{ $w.OrdererLocalTLSDir Orderer }}/ca.crt 20 ClientAuthRequired: {{ $w.ClientAuthRequired }} 21 ClientRootCAs: 22 Cluster: 23 ClientCertificate: {{ $w.OrdererLocalTLSDir Orderer }}/server.crt 24 ClientPrivateKey: {{ $w.OrdererLocalTLSDir Orderer }}/server.key 25 ServerCertificate: {{ $w.OrdererLocalTLSDir Orderer }}/server.crt 26 ServerPrivateKey: {{ $w.OrdererLocalTLSDir Orderer }}/server.key 27 DialTimeout: 5s 28 RPCTimeout: 7s 29 ReplicationBufferSize: 20971520 30 ReplicationPullTimeout: 5s 31 ReplicationRetryTimeout: 5s 32 ListenAddress: 127.0.0.1 33 ListenPort: {{ .OrdererPort Orderer "Cluster" }} 34 Keepalive: 35 ServerMinInterval: 60s 36 ServerInterval: 7200s 37 ServerTimeout: 20s 38 BootstrapMethod: file 39 BootstrapFile: {{ .RootDir }}/{{ .SystemChannel.Name }}_block.pb 40 LocalMSPDir: {{ $w.OrdererLocalMSPDir Orderer }} 41 LocalMSPID: {{ ($w.Organization Orderer.Organization).MSPID }} 42 Profile: 43 Enabled: false 44 Address: 127.0.0.1:{{ .OrdererPort Orderer "Profile" }} 45 BCCSP: 46 Default: SW 47 SW: 48 Hash: SHA2 49 Security: 256 50 FileKeyStore: 51 KeyStore: 52 Authentication: 53 TimeWindow: 15m 54 FileLedger: 55 Location: {{ .OrdererDir Orderer }}/system 56 Prefix: hyperledger-fabric-ordererledger 57 {{ if eq .Consensus.Type "kafka" -}} 58 Kafka: 59 Retry: 60 ShortInterval: 5s 61 ShortTotal: 10m 62 LongInterval: 5m 63 LongTotal: 12h 64 NetworkTimeouts: 65 DialTimeout: 10s 66 ReadTimeout: 10s 67 WriteTimeout: 10s 68 Metadata: 69 RetryBackoff: 250ms 70 RetryMax: 3 71 Producer: 72 RetryBackoff: 100ms 73 RetryMax: 3 74 Consumer: 75 RetryBackoff: 2s 76 Topic: 77 ReplicationFactor: 1 78 Verbose: false 79 TLS: 80 Enabled: false 81 PrivateKey: 82 Certificate: 83 RootCAs: 84 SASLPlain: 85 Enabled: false 86 User: 87 Password: 88 Version:{{ end }} 89 Debug: 90 BroadcastTraceDir: 91 DeliverTraceDir: 92 Consensus: 93 WALDir: {{ .OrdererDir Orderer }}/etcdraft/wal 94 SnapDir: {{ .OrdererDir Orderer }}/etcdraft/snapshot 95 EvictionSuspicion: 10s 96 Operations: 97 ListenAddress: 127.0.0.1:{{ .OrdererPort Orderer "Operations" }} 98 TLS: 99 Enabled: true 100 PrivateKey: {{ $w.OrdererLocalTLSDir Orderer }}/server.key 101 Certificate: {{ $w.OrdererLocalTLSDir Orderer }}/server.crt 102 RootCAs: 103 - {{ $w.OrdererLocalTLSDir Orderer }}/ca.crt 104 ClientAuthRequired: {{ $w.ClientAuthRequired }} 105 ClientRootCAs: 106 - {{ $w.OrdererLocalTLSDir Orderer }}/ca.crt 107 Metrics: 108 Provider: {{ .MetricsProvider }} 109 Statsd: 110 Network: udp 111 Address: {{ if .StatsdEndpoint }}{{ .StatsdEndpoint }}{{ else }}127.0.0.1:8125{{ end }} 112 WriteInterval: 5s 113 Prefix: {{ ReplaceAll (ToLower Orderer.ID) "." "_" }} 114 {{- end }} 115 `