Skip to content

Commit

Permalink
feat: run verifier with subpath verifier
Browse files Browse the repository at this point in the history
Signed-off-by: Bjorn Molin <[email protected]>
  • Loading branch information
bjornmolin committed Feb 16, 2025
1 parent 1bbfb1a commit f55c5e3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ RUN yarn run build
# Stage 2
FROM nginx
COPY /nginx/templates/nginx.conf.template /etc/nginx/templates/nginx.conf.template
COPY --from=build-step /usr/src/app/dist/verifier-ui/browser /usr/share/nginx/html
COPY --from=build-step /usr/src/app/dist/verifier-ui/browser /usr/share/nginx/html/verifier
EXPOSE 4300
4 changes: 2 additions & 2 deletions nginx/templates/nginx.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
server_name localhost;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
location /verifier/ {
try_files $uri $uri/ /verifier/index.html;
sub_filter_types text/xml application/javascript text/javascript;
sub_filter 'http://localhost:8080' $HOST_API;
sub_filter_once on;
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"scripts": {
"ng": "ng",
"start": "npm run config && ng serve --proxy-config src/proxy.conf.json",
"build": "npm run config && ng build --configuration=production",
"build": "npm run config && ng build --configuration=production --base-href /verifier/",
"watch": "npm run config && ng build --watch --configuration=development",
"config": "node set-env.js",
"test": "ng test",
Expand All @@ -13,7 +13,7 @@
"lint": "ng lint --fix",
"pre-build": "test && lint"
},
"private": true,
"private": true,
"dependencies": {
"@angular/animations": "^19.1.3",
"@angular/cdk": "19.1.1",
Expand Down
6 changes: 3 additions & 3 deletions src/app/core/services/verifier-endpoint.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import {EventLog} from "@core/models/EventLog";
import { HttpHeaders } from "@angular/common/http";
import {ActiveTransaction} from "@core/models/ActiveTransaction";

const SAME_DEVICE_UI_RE_ENTRY_URL = '/get-wallet-code?response_code={RESPONSE_CODE}';
const PRESENTATIONS_ENDPOINT = 'ui/presentations';
const VALIDATE_SD_JWT_VC_PRESENTATION_ENDPOINT = 'utilities/validations/sdJwtVc';
const SAME_DEVICE_UI_RE_ENTRY_URL = '/verifier/get-wallet-code?response_code={RESPONSE_CODE}';
const PRESENTATIONS_ENDPOINT = 'verifier/ui/presentations';
const VALIDATE_SD_JWT_VC_PRESENTATION_ENDPOINT = 'verifier/utilities/validations/sdJwtVc';

@Injectable()
export class VerifierEndpointService {
Expand Down

0 comments on commit f55c5e3

Please sign in to comment.