mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-13 21:49:08 +00:00
Compare commits
19
Commits
@@ -53,4 +53,4 @@ releases:
|
|||||||
# 137.131.167.254/32 loadbalancer
|
# 137.131.167.254/32 loadbalancer
|
||||||
# 159.112.184.81/32 cluster ip for the uptime request ingest
|
# 159.112.184.81/32 cluster ip for the uptime request ingest
|
||||||
- name: maestro.restricted_ip
|
- name: maestro.restricted_ip
|
||||||
value: "177.52.172.0/24, 189.84.160.157/32, 186.237.171.146/32, 137.131.167.254/32, 10.70.0.0/16, 159.112.184.81/32"
|
value: "177.52.172.0/24, 189.84.160.157/32, 186.237.171.146/32, 137.131.167.254/32, 10.70.0.0/16, 159.112.184.81/32, 10.244.0.0/16"
|
||||||
|
|||||||
@@ -27,4 +27,4 @@ charts:
|
|||||||
- name: resources
|
- name: resources
|
||||||
value: null
|
value: null
|
||||||
- name: maestro.restricted_ip
|
- name: maestro.restricted_ip
|
||||||
value: "137.131.167.254/32, 10.70.0.0/16, 159.112.184.81/32"
|
value: "137.131.167.254/32, 10.70.0.0/16, 159.112.184.81/32, 10.244.0.0/16"
|
||||||
|
|||||||
@@ -116,6 +116,44 @@ export const PERMISSIONS_GROUPS = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
IMPORT_FILES: {
|
||||||
|
title: {
|
||||||
|
'pt-br': 'Coletar | Importar arquivos',
|
||||||
|
'en-us': 'Collect | Import files',
|
||||||
|
'es-es': 'Colecta | Importar archivos',
|
||||||
|
},
|
||||||
|
permissions: {
|
||||||
|
VIEW: {
|
||||||
|
seqid: 48,
|
||||||
|
claim: 'import-file:view',
|
||||||
|
usage: PermissionUsages.PUBLIC,
|
||||||
|
name: {
|
||||||
|
'pt-br': 'Importar arquivos',
|
||||||
|
'en-us': 'Import files',
|
||||||
|
'es-es': 'Importar archivos',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
AI_CHAT: {
|
||||||
|
title: {
|
||||||
|
'pt-br': 'AutodriveDDF',
|
||||||
|
'en-us': 'AutodriveDDF',
|
||||||
|
'es-es': 'AutodriveDDF',
|
||||||
|
},
|
||||||
|
permissions: {
|
||||||
|
VIEW: {
|
||||||
|
seqid: 49,
|
||||||
|
claim: 'ai-chat:view',
|
||||||
|
usage: PermissionUsages.PUBLIC,
|
||||||
|
name: {
|
||||||
|
'pt-br': 'AutodriveDDF',
|
||||||
|
'en-us': 'AutodriveDDF',
|
||||||
|
'es-es': 'AutodriveDDF',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
CONNECTION: {
|
CONNECTION: {
|
||||||
title: {
|
title: {
|
||||||
'pt-br': 'Coletar | Fontes de dados',
|
'pt-br': 'Coletar | Fontes de dados',
|
||||||
|
|||||||
+12
-3
@@ -21,18 +21,27 @@ async function bootstrap() {
|
|||||||
const app = await NestFactory.create(AppModule, {
|
const app = await NestFactory.create(AppModule, {
|
||||||
logger,
|
logger,
|
||||||
cors: {
|
cors: {
|
||||||
origin: '*',
|
origin: [
|
||||||
|
'https://app.stg.dadosfera.ai',
|
||||||
|
'https://app.dadosfera.ai',
|
||||||
|
'https://unimed.dadosfera.ai',
|
||||||
|
'https://boston-scientific.dadosfera.ai',
|
||||||
|
'https://plataforma.dadosfera.ai'
|
||||||
|
],
|
||||||
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE',
|
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE',
|
||||||
preflightContinue: false,
|
preflightContinue: false,
|
||||||
optionsSuccessStatus: 204,
|
optionsSuccessStatus: 204,
|
||||||
credentials: true
|
credentials: true,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
app.use(helmet());
|
app.use(helmet());
|
||||||
app.use(cookieParser(process.env.COOKIE_SECRET));
|
app.use(cookieParser(process.env.COOKIE_SECRET));
|
||||||
if (process.env.ENV === 'prd') {
|
if (process.env.ENV === 'prd') {
|
||||||
app.use('/catalog/register-dataset', json({ limit: '10mb' }));
|
app.use('/catalog/register-dataset', json({ limit: '10mb' }));
|
||||||
app.use('/catalog/register-dataset', urlencoded({ extended: true, limit: '10mb' }));
|
app.use(
|
||||||
|
'/catalog/register-dataset',
|
||||||
|
urlencoded({ extended: true, limit: '10mb' }),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
configureSwagger(app);
|
configureSwagger(app);
|
||||||
|
|||||||
@@ -573,7 +573,7 @@ export class AuthController {
|
|||||||
|
|
||||||
this.logger.info('Set Cookie ddf-auth')
|
this.logger.info('Set Cookie ddf-auth')
|
||||||
res.cookie('ddf-auth', data.accessToken, {
|
res.cookie('ddf-auth', data.accessToken, {
|
||||||
domain: 'stg.dadosfera.ai',
|
domain: '.dadosfera.ai',
|
||||||
maxAge: exp,
|
maxAge: exp,
|
||||||
httpOnly: true,
|
httpOnly: true,
|
||||||
secure: true,
|
secure: true,
|
||||||
@@ -584,7 +584,7 @@ export class AuthController {
|
|||||||
if (data.refreshToken) {
|
if (data.refreshToken) {
|
||||||
this.logger.info('Set Cookie ddf-refresh-auth')
|
this.logger.info('Set Cookie ddf-refresh-auth')
|
||||||
res.cookie('ddf-refresh-auth', data.refreshToken, {
|
res.cookie('ddf-refresh-auth', data.refreshToken, {
|
||||||
domain: 'stg.dadosfera.ai',
|
domain: '.dadosfera.ai',
|
||||||
maxAge: exp,
|
maxAge: exp,
|
||||||
httpOnly: true,
|
httpOnly: true,
|
||||||
secure: true,
|
secure: true,
|
||||||
@@ -595,7 +595,7 @@ export class AuthController {
|
|||||||
if (data.userId) {
|
if (data.userId) {
|
||||||
this.logger.info('Set Cookie ddf-refresh-auth')
|
this.logger.info('Set Cookie ddf-refresh-auth')
|
||||||
res.cookie('ddf-user-id', data.userId, {
|
res.cookie('ddf-user-id', data.userId, {
|
||||||
domain: 'stg.dadosfera.ai',
|
domain: '.dadosfera.ai',
|
||||||
maxAge: exp,
|
maxAge: exp,
|
||||||
httpOnly: true,
|
httpOnly: true,
|
||||||
secure: true,
|
secure: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user