fix: enable trust proxy with express adapter

This commit is contained in:
Matthieu
2025-09-18 08:26:26 +02:00
parent 11695cec7c
commit 9ce37ff148
18 changed files with 573 additions and 571 deletions

View File

@@ -37,8 +37,8 @@ export declare class DocumentsController {
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
piece: {
name: string;
@@ -61,11 +61,11 @@ export declare class DocumentsController {
siteId: string | null;
machineId: string | null;
composantId: string | null;
pieceId: string | null;
filename: string;
path: string;
mimeType: string;
size: number;
pieceId: string | null;
}>;
findAll(): Promise<({
site: {
@@ -101,8 +101,8 @@ export declare class DocumentsController {
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
piece: {
name: string;
@@ -125,11 +125,11 @@ export declare class DocumentsController {
siteId: string | null;
machineId: string | null;
composantId: string | null;
pieceId: string | null;
filename: string;
path: string;
mimeType: string;
size: number;
pieceId: string | null;
})[]>;
findByMachine(machineId: string): Promise<({
site: {
@@ -165,8 +165,8 @@ export declare class DocumentsController {
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
piece: {
name: string;
@@ -189,11 +189,11 @@ export declare class DocumentsController {
siteId: string | null;
machineId: string | null;
composantId: string | null;
pieceId: string | null;
filename: string;
path: string;
mimeType: string;
size: number;
pieceId: string | null;
})[]>;
findByComposant(composantId: string): Promise<({
site: {
@@ -229,8 +229,8 @@ export declare class DocumentsController {
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
piece: {
name: string;
@@ -253,11 +253,11 @@ export declare class DocumentsController {
siteId: string | null;
machineId: string | null;
composantId: string | null;
pieceId: string | null;
filename: string;
path: string;
mimeType: string;
size: number;
pieceId: string | null;
})[]>;
findByPiece(pieceId: string): Promise<({
site: {
@@ -293,8 +293,8 @@ export declare class DocumentsController {
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
piece: {
name: string;
@@ -317,11 +317,11 @@ export declare class DocumentsController {
siteId: string | null;
machineId: string | null;
composantId: string | null;
pieceId: string | null;
filename: string;
path: string;
mimeType: string;
size: number;
pieceId: string | null;
})[]>;
findBySite(siteId: string): Promise<({
site: {
@@ -357,8 +357,8 @@ export declare class DocumentsController {
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
piece: {
name: string;
@@ -381,11 +381,11 @@ export declare class DocumentsController {
siteId: string | null;
machineId: string | null;
composantId: string | null;
pieceId: string | null;
filename: string;
path: string;
mimeType: string;
size: number;
pieceId: string | null;
})[]>;
findOne(id: string): Promise<({
site: {
@@ -421,8 +421,8 @@ export declare class DocumentsController {
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
piece: {
name: string;
@@ -445,11 +445,11 @@ export declare class DocumentsController {
siteId: string | null;
machineId: string | null;
composantId: string | null;
pieceId: string | null;
filename: string;
path: string;
mimeType: string;
size: number;
pieceId: string | null;
}) | null>;
update(id: string, updateDocumentDto: UpdateDocumentDto): Promise<{
site: {
@@ -485,8 +485,8 @@ export declare class DocumentsController {
emplacement: string | null;
constructeurId: string | null;
machineId: string | null;
typeComposantId: string | null;
parentComposantId: string | null;
typeComposantId: string | null;
} | null;
piece: {
name: string;
@@ -509,11 +509,11 @@ export declare class DocumentsController {
siteId: string | null;
machineId: string | null;
composantId: string | null;
pieceId: string | null;
filename: string;
path: string;
mimeType: string;
size: number;
pieceId: string | null;
}>;
remove(id: string): Promise<{
name: string;
@@ -523,10 +523,10 @@ export declare class DocumentsController {
siteId: string | null;
machineId: string | null;
composantId: string | null;
pieceId: string | null;
filename: string;
path: string;
mimeType: string;
size: number;
pieceId: string | null;
}>;
}