mirror of
https://github.com/james-m-jordan/morphik-core.git
synced 2025-05-09 19:32:38 +00:00
update uri gen to match new config
This commit is contained in:
parent
f72f6f0249
commit
bd4d8f8178
@ -33,11 +33,9 @@ payload = {
|
|||||||
token = jwt.encode(payload, jwt_secret, algorithm="HS256")
|
token = jwt.encode(payload, jwt_secret, algorithm="HS256")
|
||||||
|
|
||||||
|
|
||||||
with open("config.toml", "rb") as f:
|
with open("databridge.toml", "rb") as f:
|
||||||
config = tomli.load(f)
|
config = tomli.load(f)
|
||||||
base_url = f"{config['service']['host']}:{config['service']['port']}".replace(
|
base_url = f"{config['api']['host']}:{config['api']['port']}".replace("localhost", "127.0.0.1")
|
||||||
"localhost", "127.0.0.1"
|
|
||||||
)
|
|
||||||
entity_id = args.name
|
entity_id = args.name
|
||||||
uri = f"databridge://{entity_id}:{token}@{base_url}"
|
uri = f"databridge://{entity_id}:{token}@{base_url}"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user