mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-13 06:29:08 +00:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
00163ad894 |
@@ -49,5 +49,8 @@ releases:
|
|||||||
value: dea2c27f-0973-4588-a2e0-9e31b64c7ffd
|
value: dea2c27f-0973-4588-a2e0-9e31b64c7ffd
|
||||||
- name: replicaCount
|
- name: replicaCount
|
||||||
value: 1
|
value: 1
|
||||||
# - name: maestro.restricted_ip
|
# 10.70.0.0/16 internal network
|
||||||
# value: "177.52.172.0/24,189.84.160.157/32,186.237.171.146/32,10.70.1.0/24"
|
# 137.131.167.254/32 loadbalancer
|
||||||
|
# 159.112.184.81/32 cluster ip for the uptime request ingest
|
||||||
|
- 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"
|
||||||
|
|||||||
@@ -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,163.176.242.27/32"
|
value: "137.131.167.254/32, 10.70.0.0/16, 159.112.184.81/32"
|
||||||
|
|||||||
+3
-12
@@ -21,27 +21,18 @@ 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(
|
app.use('/catalog/register-dataset', urlencoded({ extended: true, limit: '10mb' }));
|
||||||
'/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: '.dadosfera.ai',
|
domain: 'stg.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: '.dadosfera.ai',
|
domain: 'stg.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: '.dadosfera.ai',
|
domain: 'stg.dadosfera.ai',
|
||||||
maxAge: exp,
|
maxAge: exp,
|
||||||
httpOnly: true,
|
httpOnly: true,
|
||||||
secure: true,
|
secure: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user