mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-12-24 15:09:35 -05:00
ee4273d2d5
1231: feat(asb): allow config overrides from env vars r=delta1 a=delta1 - upgrades config crate to 0.13.2 #1087 - adds environment source for config overrides This change allows the ASB config to be overridden by env vars starting with `ASB__`. Adds a test to check this, and updates the de/serialization of the network `listen` and `external_addresses` fields to be a comma separated string from the environment. The `separator` is a pair of underscores, which is necessary since some of the fields already have underscores in their names. Example env var: `ASB__NETWORK__EXTERNAL_ADDRESSES="/dns4/example.org/tcp/9939,/ip4/1.2.3.4/tcp/9940"` This particular change will help when running the ASB as a docker container (wip), allowing the config to be set in the env for docker-compose etc. Co-authored-by: Byron Hambly <bhambly@blockstream.com> |
||
---|---|---|
.. | ||
migrations | ||
proptest-regressions/bitcoin | ||
src | ||
tests | ||
build.rs | ||
Cargo.toml | ||
sqlite_dev_setup.sh | ||
sqlx-data.json |