hashgraph / hedera-services

Crypto, token, consensus, file, and smart contract services for the Hedera public ledger
Apache License 2.0
313 stars 138 forks source link

Config API: Support for .env files in config API #5388

Open swirlds-automation opened 1 year ago

swirlds-automation commented 1 year ago

The config API can already read config properties from the system environment (see SystemEnvironmentConfigSource). It would be cool if a '.env' file would be supported, too. The lib https://github.com/cdimascio/dotenv-java provides functionality to read an .env file and add the content to the system environment. We could add that to the config source.

swirlds-automation commented 1 year ago

migrated from: url=https://github.com/swirlds/swirlds-platform/issues/6654 author:hendrikebbers, #:6654, createdAt:2023-02-08T13:12:31Z, updatedAt=2023-02-17T20:56:01Z labels=Migration:Base

hendrikebbers commented 1 year ago

Details about env usage: https://github.com/hashgraph/hedera-services/issues/3972