Browse Source

fix : disable etag and x-powered-by

pull/3303/head
Naveen MR 2 years ago
parent
commit
785a41c605
  1. 9
      packages/nocodb/src/run/docker.ts
  2. 5
      packages/nocodb/src/run/dockerRunMysql.ts
  3. 5
      packages/nocodb/src/run/dockerRunPG.ts
  4. 5
      packages/nocodb/src/run/dockerRunPG_CyQuick.ts

9
packages/nocodb/src/run/docker.ts

@ -6,7 +6,8 @@ process.env.NC_VERSION = '0009044';
const server = express();
server.enable('trust proxy');
server.disable('etag');
server.disable('x-powered-by');
server.use(
cors({
exposedHeaders: 'xc-db-response',
@ -15,12 +16,6 @@ server.use(
server.set('view engine', 'ejs');
// process.env[`NC_DB`] = `mysql2://localhost:3306?u=root&p=password&d=mar_21`;
// process.env[`NC_DB`] = `pg://localhost:3306?u=root&p=password&d=mar_24`;
// process.env[`NC_DB`] = `pg://localhost:5432?u=postgres&p=password&d=abcde`;
// process.env[`NC_TRY`] = 'true';
// process.env[`NC_DASHBOARD_URL`] = '/test';
process.env[`DEBUG`] = 'xc*';
(async () => {

5
packages/nocodb/src/run/dockerRunMysql.ts

@ -6,7 +6,8 @@ process.env.NC_VERSION = '0009044';
const server = express();
server.enable('trust proxy');
server.disable('etag');
server.disable('x-powered-by');
server.use(
cors({
exposedHeaders: 'xc-db-response',
@ -25,7 +26,7 @@ process.env[`NC_DB`] = `mysql2://localhost:3306?u=root&p=password&d=${metaDb}`;
// process.env[`NC_TRY`] = 'true';
// process.env[`NC_DASHBOARD_URL`] = '/test';
process.env[`DEBUG`] = 'xc*';
// process.env[`DEBUG`] = 'xc*';
(async () => {
const httpServer = server.listen(process.env.PORT || 8080, () => {

5
packages/nocodb/src/run/dockerRunPG.ts

@ -6,7 +6,8 @@ process.env.NC_VERSION = '0009044';
const server = express();
server.enable('trust proxy');
server.disable('etag');
server.disable('x-powered-by');
server.use(
cors({
exposedHeaders: 'xc-db-response',
@ -25,7 +26,7 @@ process.env[`NC_DB`] = `pg://localhost:5432?u=postgres&p=password&d=${metaDb}`;
// process.env[`NC_TRY`] = 'true';
// process.env[`NC_DASHBOARD_URL`] = '/test';
process.env[`DEBUG`] = 'xc*';
// process.env[`DEBUG`] = 'xc*';
(async () => {
const httpServer = server.listen(process.env.PORT || 8080, () => {

5
packages/nocodb/src/run/dockerRunPG_CyQuick.ts

@ -6,7 +6,8 @@ process.env.NC_VERSION = '0009044';
const server = express();
server.enable('trust proxy');
server.disable('etag');
server.disable('x-powered-by');
server.use(
cors({
exposedHeaders: 'xc-db-response',
@ -18,7 +19,7 @@ process.env[
`NC_DB`
] = `pg://localhost:5432?u=postgres&p=password&d=meta_v2_2022_06_13`;
process.env[`DEBUG`] = 'xc*';
//process.env[`DEBUG`] = 'xc*';
(async () => {
const httpServer = server.listen(process.env.PORT || 8080, () => {

Loading…
Cancel
Save