Skip to content

Commit

Permalink
Change the files context service url in config and change rule accord…
Browse files Browse the repository at this point in the history
…ion label
  • Loading branch information
Maxime Naulleau committed Dec 6, 2024
1 parent 78df8a3 commit 9e6b995
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ export class HttpReportFileService implements ReportFileService {
this.fileServiceUrl = new URL(
this.apiConfig.contextServices.filesContext.baseUrl,
);
this.fileServiceUrl.port =
this.apiConfig.contextServices.filesContext.port.toString();
}

async uploadFile(
Expand Down
8 changes: 4 additions & 4 deletions apps/api/src/shared-kernel/adapters/primary/nestjs/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ export const apiConfig: ProdApiConfig = {
},
contextServices: {
filesContext: {
baseUrl: 'http://localhost',
port: 3000,
// The DNS will resolve this url to a private IP.
// APP env variable is set by scalingo.
baseUrl: `http://${process.env.APP}.osc-secnum-fr1.scalingo.io`,
},
},
s3: {
Expand Down Expand Up @@ -43,8 +44,7 @@ export const defaultApiConfig = {
},
contextServices: {
filesContext: {
baseUrl: 'http://localhost',
port: 3000,
baseUrl: 'http://localhost:3000',
},
},
s3: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const commonBaseSchema = z.object({
contextServices: z.object({
filesContext: z.object({
baseUrl: z.string(),
port: z.number(),
}),
}),
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const getReportAccordionLabel = (
case NominationFile.RuleGroup.STATUTORY:
return "Autres règles statutaires";
case NominationFile.RuleGroup.QUALITATIVE:
return "Autres règles qualitatives";
return "Autres éléments qualitatifs";
default: {
const _exhaustiveCheck: never = group;
console.info(_exhaustiveCheck);
Expand Down

0 comments on commit 9e6b995

Please sign in to comment.