Skip to content

Commit

Permalink
Merge pull request #54 from Indicio-tech/fix/ws-labels
Browse files Browse the repository at this point in the history
fix: ws labels from settings event
  • Loading branch information
dbluhm authored Aug 9, 2023
2 parents 2d38fe2 + 070e2e4 commit 9283b73
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions controller/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ async def setup(self) -> "Controller":
self._session = await self._stack.enter_async_context(
ClientSession(base_url=self.base_url, headers=self.headers)
)

# Get settings
settings = await self.record("settings")
self.label = settings["label"]
return self

async def shutdown(self, exc_info: Optional[Tuple] = None):
Expand Down
2 changes: 2 additions & 0 deletions examples/presenting_revoked_credential/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ services:
- "3001:3001"
command: >
start
--label Alice
--inbound-transport http 0.0.0.0 3000
--outbound-transport http
--endpoint http://alice:3000
Expand Down Expand Up @@ -52,6 +53,7 @@ services:
- "3002:3001"
command: >
start
--label Bob
--inbound-transport http 0.0.0.0 3000
--outbound-transport http
--endpoint http://bob:3000
Expand Down
3 changes: 3 additions & 0 deletions examples/simple/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ services:
- "3001:3001"
command: >
start
--label Alice
--inbound-transport http 0.0.0.0 3000
--outbound-transport http
--endpoint http://alice:3000
Expand Down Expand Up @@ -38,6 +39,7 @@ services:
- "3002:3001"
command: >
start
--label Bob
--inbound-transport http 0.0.0.0 3000
--outbound-transport http
--endpoint http://bob:3000
Expand Down Expand Up @@ -72,6 +74,7 @@ services:
- ALICE=http://alice:3001
- BOB=http://bob:3001
volumes:
- ../../controller:/usr/src/app/controller:z
- ./example.py:/usr/src/app/example.py:ro,z
command: python -m example
depends_on:
Expand Down
2 changes: 2 additions & 0 deletions examples/tunnels/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ services:
/bin/sh -c '/tunnel_endpoint.sh aca-py "$$@"' --
command: >
start
--label Alice
--inbound-transport http 0.0.0.0 3000
--outbound-transport http
--admin 0.0.0.0 3001
Expand Down Expand Up @@ -69,6 +70,7 @@ services:
/bin/sh -c '/tunnel_endpoint.sh aca-py "$$@"' --
command: >
start
--label Bob
--inbound-transport http 0.0.0.0 3000
--outbound-transport http
--admin 0.0.0.0 3001
Expand Down

0 comments on commit 9283b73

Please sign in to comment.