|
|
|
@ -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 () => { |
|
|
|
|