Skip to content

Instantly share code, notes, and snippets.

@cradonn
Created June 11, 2024 22:15
Show Gist options
  • Save cradonn/601fad86a8fb35cb64bbf4708e14720a to your computer and use it in GitHub Desktop.
Save cradonn/601fad86a8fb35cb64bbf4708e14720a to your computer and use it in GitHub Desktop.
Blockchain Explorer - Configuration
{
"name": "test-network",
"version": "1.0.0",
"client": {
"tlsEnable": true,
"adminCredential": {
"id": "exploreradmin",
"password": "exploreradminpw"
},
"enableAuthentication": true,
"organization": "Org1MSP",
"connection": {
"timeout": {
"peer": {
"endorser": "300"
},
"orderer": "300"
}
}
},
"channels": {
"mychannel": {
"peers": {
"peer0.org1.example.com": {}
}
}
},
"organizations": {
"Org1MSP": {
"mspid": "Org1MSP",
"adminPrivateKey": {
"path": "/tmp/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore/priv_sk"
},
"peers": ["peer0.org1.example.com"],
"signedCert": {
"path": "/tmp/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/signcerts/Admin@org1.example.com-cert.pem"
}
}
},
"peers": {
"peer0.org1.example.com": {
"tlsCACerts": {
"path": "/tmp/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt"
},
"url": "grpcs://peer0.org1.example.com:7051"
}
}
}
@cradonn
Copy link
Author

cradonn commented Jun 11, 2024

All paths in test-network.json should be configured to /tmp/crypto/.. as mapped in docker-compose.yaml.

      volumes:
      - ${EXPLORER_CONFIG_FILE_PATH}:/opt/explorer/app/platform/fabric/config.json
      - ${EXPLORER_PROFILE_DIR_PATH}:/opt/explorer/app/platform/fabric/connection-profile
      - ${FABRIC_CRYPTO_PATH}:/tmp/crypto
      - walletstore:/opt/explorer/wallet

The "Make sure you replace all paths" comment in the Quick start (using Docker) is slightly misleading. 🫤

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment