morpheus
morpheus

Reputation: 20290

Hyperledger Fabric CA: Where can we find list of environment variables?

From the docs:

The Fabric CA provides 3 ways to configure settings on the Fabric CA server and client. The precedence order is:

  1. CLI flags
  2. Environment variables
  3. Configuration file

Where can we find list of applicable Environment variables with their description? e.g., we know FABRIC_CA_SERVER_HOME can be used to set the home directory. What about all the rest env variables?

Upvotes: 2

Views: 479

Answers (1)

Gari Singh
Gari Singh

Reputation: 12013

Any of the CLI flags can be set via environment variables. All environment variables start with FABRIC_CA_SERVER and then you simply append the command line flag using _ as a separator and replace . with _; so

--address -> FABRIC_CA_SERVER_ADDRESS --ca.keyfile -> FABRIC_CA_SERVER_CA_KEYFILE

The same concept applies for values in the config file as well; you just append them to FABRIC_CA_SERVER using _ for each level of the tree.

Upvotes: 2

Related Questions