Skip to content

Commit

Permalink
read nginx url from env for btc-like crypto
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytro-samoylenko committed Jan 10, 2025
1 parent ce125f1 commit 7b9988a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shkeeper/modules/classes/bitcoin_like_crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ def dump_wallet(self):
).json(parse_float=Decimal)

host, port = self.gethost().split(":")
return f"http://{host}:5555/{fname}"
nginx_url = environ.get(f"{self.crypto}_NGINX_URL", f"http://{host}:5555")
return f"{nginx_url}/{fname}"

def get_all_addresses(self):
response = requests.post(
Expand Down

0 comments on commit 7b9988a

Please # to comment.