Configuration
The execution of Hive Node service depends on its configuration file, which includes the following parts:
  • Running parameters (for example: did resolver link, Hive Node DID information, etc.)
  • Function switch. Enable CORS function?
Taking the configuration parameters of the development environment as an example, the following parameters that may be used in the configuration file are introduced:
  • DID Resolver and ELA Resolver
1
DID_RESOLVER=https://api.trinity-tech.cn/eid
2
ELA_RESOLVER=https://api-testnet.elastos.io/ela
Copied!
  • Hive Node Instance DID
1
DID_MNEMONIC="advance duty suspect finish space matter squeeze elephant twenty over stick shield"
2
DID_PASSPHRASE=secret
3
DID_STOREPASS=password
Copied!
  • The local data directory location is used to save DID and other information.
1
HIVE_DATA = ./data
Copied!
  • Payment profile and wallet address of the Hive Node controller
1
HIVE_PAYMENT_CONFIG=./payment_config.json
2
HIVE_PAYMENT_ADDRESS=EN9YK69ScA6WFgVQW3UZcmSRLSCStaU2pQ
Copied!
  • MongoDB configuration
1
MONGO_TYPE=
2
MONGO_HOST=localhost
3
MONGO_PORT=27020
Copied!
  • The name of the database used for management of the Hive Node.
1
DID_INFO_DB_NAME=hive_manage_info
Copied!
  • Basic information of Hive Node: version number and submitted hash value
1
HIVE_VERSION=v2.3.6
2
HIVE_COMMIT_HASH=cec7d255e758bfddea3cff0a36b117bae0770b13
Copied!
  • Is CORS switch supported?
1
ENABLE_CORS=True
Copied!
  • IPFS service configuration information
IPFS_NODE_URL = http://localhost:5002 IPFS_PROXY_URL = http://localhost:8080
Copy link