-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Mirko Mollik <[email protected]>
- Loading branch information
Showing
28 changed files
with
221 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ FROM docker.io/node:lts-alpine as deps | |
RUN apk add --no-cache libc6-compat | ||
WORKDIR /usr/src/app | ||
COPY dist/apps/holder-backend/package*.json ./ | ||
COPY dist/apps/holder-backend/pnpm-lock.yaml ./ | ||
COPY pnpm-lock.yaml ./ | ||
COPY patches ./patches | ||
RUN npm install -g [email protected] | ||
RUN pnpm install --prod | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"dependencies": { | ||
"@sphereon/pex": "^3.3.3", | ||
"pg": "^8.11.5" | ||
}, | ||
"pnpm": { | ||
"patchedDependencies": { | ||
"@sphereon/[email protected]": "patches/@[email protected]" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
import { Controller, Get } from '@nestjs/common'; | ||
import { ApiOperation } from '@nestjs/swagger'; | ||
import { Public } from 'nest-keycloak-connect'; | ||
|
||
@Controller() | ||
export class AppController { | ||
/** | ||
* Health check endpoint | ||
* @returns | ||
*/ | ||
@ApiOperation({ summary: 'Health check endpoint' }) | ||
@Public() | ||
@Get('health') | ||
health() { | ||
//TODO: for a better health check, use https://docs.nestjs.com/recipes/terminus#setting-up-a-healthcheck | ||
return 'ok'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,4 @@ DB_NAME=tmp/db.sqlite | |
|
||
CREDENTIALS_FOLDER=config/issuer-backend | ||
|
||
KM_FOLDER=tmp/issuer/ | ||
KM_FOLDER=tmp/issuer/keys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ FROM docker.io/node:lts-alpine as deps | |
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. | ||
RUN apk add --no-cache libc6-compat | ||
WORKDIR /usr/src/app | ||
COPY dist/apps/holder-backend/package*.json ./ | ||
COPY dist/apps/holder-backend/pnpm-lock.yaml ./ | ||
COPY dist/apps/issuer-backend/package.json ./ | ||
COPY pnpm-lock.yaml ./ | ||
COPY patches ./patches | ||
RUN npm install -g [email protected] | ||
RUN pnpm install --prod | ||
|
@@ -17,7 +17,7 @@ ENV PORT 3000 | |
WORKDIR /usr/src/app | ||
COPY --from=deps /usr/src/app/node_modules ./node_modules | ||
COPY --from=deps /usr/src/app/package.json ./package.json | ||
COPY dist/apps/holder-backend . | ||
COPY dist/apps/issuer-backend . | ||
RUN chown -R node:node . | ||
USER node | ||
EXPOSE 3000 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"dependencies": { | ||
"sqlite3": "^5.1.7", | ||
"@sphereon/pex": "^3.3.3" | ||
}, | ||
"pnpm": { | ||
"patchedDependencies": { | ||
"@sphereon/[email protected]": "patches/@[email protected]" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ FROM docker.io/node:lts-alpine as deps | |
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. | ||
RUN apk add --no-cache libc6-compat | ||
WORKDIR /usr/src/app | ||
COPY dist/apps/holder-backend/package*.json ./ | ||
COPY dist/apps/holder-backend/pnpm-lock.yaml ./ | ||
COPY dist/apps/verifier-backend/package.json ./ | ||
COPY pnpm-lock.yaml ./ | ||
COPY patches ./patches | ||
RUN npm install -g [email protected] | ||
RUN pnpm install --prod | ||
|
@@ -17,7 +17,7 @@ ENV PORT 3000 | |
WORKDIR /usr/src/app | ||
COPY --from=deps /usr/src/app/node_modules ./node_modules | ||
COPY --from=deps /usr/src/app/package.json ./package.json | ||
COPY dist/apps/holder-backend . | ||
COPY dist/apps/verifier-backend . | ||
RUN chown -R node:node . | ||
USER node | ||
EXPOSE 3000 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"dependencies": { | ||
"@sphereon/pex": "^3.3.3" | ||
}, | ||
"pnpm": { | ||
"patchedDependencies": { | ||
"@sphereon/[email protected]": "patches/@[email protected]" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
apps/verifier-backend/src/app/verifier/relying-party-manager.service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.