xmr-btc-swap/swap
bors[bot] ee4273d2d5
Merge #1231
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>
2022-12-09 07:50:13 +00:00
..
migrations Add sqlite database implementation 2021-09-30 18:59:12 +10:00
proptest-regressions/bitcoin Add proptest for max_giveable and signing PSBT 2021-08-12 18:42:00 +10:00
src feat(asb): allow config overrides from env vars 2022-12-05 11:27:47 +02:00
tests feat: add wallet database migration from older bdk 2022-11-23 12:23:21 +02:00
build.rs Provide a commit-specific version output 2021-07-07 17:55:13 +10:00
Cargo.toml Merge #1231 2022-12-09 07:50:13 +00:00
sqlite_dev_setup.sh docs: update sqlx script and add ci 2022-11-30 15:30:32 +02:00
sqlx-data.json docs: update sqlx script and add ci 2022-11-30 15:30:32 +02:00