-
Notifications
You must be signed in to change notification settings - Fork 15
/
config.js
24 lines (21 loc) · 965 Bytes
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
require('dotenv').config({ path: `${__dirname}/.env` });
module.exports = {
NODE_ENV: process.env.NODE_ENV || 'development',
SERVER_PORT: process.env.PORT || 8080,
CLIENT_ORIGIN: process.env.CLIENT_ORIGIN || 'http://localhost:3000',
DB_CLIENT: process.env.DB_CLIENT || 'pg',
DB_HOST: process.env.DB_HOST || 'localhost',
DB_USERNAME: process.env.DB_USERNAME || 'postgres',
DB_DATABASE: process.env.DB_DATABASE || 'booklist',
DB_TEST_DATABASE: process.env.DB_TEST_DATABASE || 'booklist_test',
DB_PASSWORD: process.env.DB_PASSWORD,
DB_PORT: process.env.DB_PORT || 5432,
DB_CONNECTION_STRING: process.env.DB_CONNECTION_STRING,
PROD_DB_PASSWORD: process.env.PROD_DB_PASSWORD,
AUTH0_JWKSURI: process.env.AUTH0_JWKSURI,
AUTH0_AUDIENCE: process.env.AUTH0_AUDIENCE,
AUTH0_ISSUER: process.env.AUTH0_ISSUER,
CLOUD_NAME: process.env.CLOUD_NAME,
CLOUD_API_KEY: process.env.CLOUD_API_KEY,
CLOUD_API_SECRET: process.env.CLOUD_API_SECRET,
};