Compare commits

..
3 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -9,11 +9,11 @@ charts:
- name: hostname - name: hostname
value: maestro.stg.dadosfera.ai value: maestro.stg.dadosfera.ai
- name: maestro.pi_factory_url - name: maestro.pi_factory_url
value: pi-factory.dadosfera.ai value: pi-factory.stg.dadosfera.ai
- name: maestro.in_factory_url - name: maestro.in_factory_url
value: in-factory.stg.dadosfera.ai value: in-factory.stg.dadosfera.ai
- name: maestro.tr_factory_url - name: maestro.tr_factory_url
value: in-factory.dadosfera.ai value: in-factory.stg.dadosfera.ai
- name: maestro.open_customer_id - name: maestro.open_customer_id
value: b3e3dfe5-b992-4586-a73c-c0b0c00f615d value: b3e3dfe5-b992-4586-a73c-c0b0c00f615d
- name: maestro.open_group_id - name: maestro.open_group_id
@@ -45,11 +45,11 @@ export class OpenDataController {
) { ) {
this.logger.info('createUser for open data' + JSON.stringify(request.headers)); this.logger.info('createUser for open data' + JSON.stringify(request.headers));
// const corslist = ["https://devsbm.dadosfera.io", "https://sharingoceandata.com"]; const corslist = ["https://devsbm.dadosfera.io", "https://sharingoceandata.com"];
// if (!corslist.includes(origin)) { if (!corslist.includes(origin)) {
// this.logger.info('block request by cors list: '+ origin); this.logger.info('block request by cors list: '+ origin);
// throw new ForbiddenException(); throw new ForbiddenException();
// } }
const OPENDATA_CUSTOMER_ID = process.env.OPEN_CUSTOMER_ID; const OPENDATA_CUSTOMER_ID = process.env.OPEN_CUSTOMER_ID;
const OPENDATA_GROUP_ID = process.env.OPEN_GROUP_ID; const OPENDATA_GROUP_ID = process.env.OPEN_GROUP_ID;
+2 -2
View File
@@ -22,7 +22,7 @@ export class PDFParser<T> implements Parser<T> {
const html = await this.htmlParser.parse(data); const html = await this.htmlParser.parse(data);
await page.setContent(html, { await page.setContent(html, {
waitUntil: 'networkidle0', waitUntil: 'networkidle0',
timeout: 90000, timeout: 30000,
}); });
// Configurações adicionais para garantir um PDF válido // Configurações adicionais para garantir um PDF válido
@@ -43,7 +43,7 @@ export class PDFParser<T> implements Parser<T> {
pageRanges: '', pageRanges: '',
tagged: true, tagged: true,
outline: false, outline: false,
timeout: 90000, timeout: 30000,
}); });
await browser.close(); await browser.close();