Skip to content

Commit

Permalink
Mer logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Oddsor committed Jan 9, 2025
1 parent 98ea547 commit d9668f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/src/proxy/labs-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export const setup = (app: Express) => {
target: `${apiUrl}/tiltaksgjennomforing-api/kodeverk`,
ignorePath: true,
changeOrigin: true,
proxyTimeout: 2000,
}),
);

Expand Down
3 changes: 3 additions & 0 deletions server/src/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,19 @@ import * as decoratorEksternProxy from './proxy/decorator-ekstern-proxy';

export function setupRoutes(server: Express) {
if (IS_LABS) {
console.log('Bruker labs-proxy...');
labsProxy.setup(server);
return;
}

if (INTERN_INGRESS) {
console.log('Bruker intern-proxy...');
apiProxy.azureSetup(server);
decoratorInternProxy.setup(server);
return;
}

console.log('Bruker ekstern-proxy...');
apiProxy.tokenxSetup(server);
notifikasjonProxy.setup(server);
decoratorEksternProxy.setup(server);
Expand Down

0 comments on commit d9668f4

Please sign in to comment.