Skip to content

Commit

Permalink
fix app association hosting
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <timo@animo.id>
  • Loading branch information
TimoGlastra committed Nov 18, 2024
1 parent 166d96d commit 7a7038c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
17 changes: 17 additions & 0 deletions app/components/IssueTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,23 @@ export function IssueTab({ disabled = false }: { disabled?: boolean }) {
{credentialOfferUri}
</p>
</TooltipTrigger>
<div className="gap-2 w-full justify-center flex flex-1">
<div>
<Link href={credentialOfferUri}>
<Button>Open in Wallet</Button>
</Link>
</div>
<div>
<Link
href={credentialOfferUri.replace(
'openid-credential-offer://',
'https://funke.animo.id/invitation'
)}
>
<Button>Open in EasyPID Wallet</Button>
</Link>
</div>
</div>
</div>

<TooltipContent>
Expand Down
5 changes: 5 additions & 0 deletions app/components/VerifyBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,11 @@ export const VerifyBlock: React.FC<VerifyBlockProps> = ({ createRequest, flowNam
</Link>
</div>
</div>
<div>
<Link href={authorizationRequestUri.replace('openid4vp://', 'https://funke.animo.id/invitation')}>
<Button>Open in EasyPID Wallet</Button>
</Link>
</div>
</div>

<TooltipContent>
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:
labels:
traefik.enable: "true"

traefik.http.routers.openid4vc-server.rule: Host(`funke.animo.id`) && (PathPrefix(`/api`) || PathPrefix(`/oid4vci`) || PathPrefix(`/siop`) || PathPrefix(`/.well-known`))
traefik.http.routers.openid4vc-server.rule: Host(`funke.animo.id`) && (PathPrefix(`/api`) || PathPrefix(`/oid4vci`) || PathPrefix(`/siop`))
traefik.http.routers.openid4vc-server.entrypoints: web-secure
traefik.http.routers.openid4vc-server.tls.certresolver: zerossl
traefik.http.routers.openid4vc-server.service: openid4vc-server-service
Expand Down Expand Up @@ -39,7 +39,7 @@ services:
- node.labels.type == community
labels:
traefik.enable: "true"
traefik.http.routers.openid4vc-app.rule: Host(`funke.animo.id`) && !PathPrefix(`/oid4vci`) && !PathPrefix(`/siop`) && !PathPrefix(`/api`) && !PathPrefix(`/.well-known`)
traefik.http.routers.openid4vc-app.rule: Host(`funke.animo.id`) && !PathPrefix(`/oid4vci`) && !PathPrefix(`/siop`) && !PathPrefix(`/api`)
traefik.http.routers.openid4vc-app.entrypoints: web-secure
traefik.http.routers.openid4vc-app.tls.certresolver: zerossl
traefik.http.routers.openid4vc-app.service: openid4vc-app-service
Expand Down

0 comments on commit 7a7038c

Please sign in to comment.