Skip to content
Permalink
e6927730b0
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
26 lines (20 sloc) 866 Bytes
require('dotenv').config();
const path = require('path');
const fs = require('fs');
let config = {}
config.app = process.env.APP;
config.port = process.env.PORT;
config.db_dialect = process.env.DB_DIALECT;
config.db_host = process.env.DB_HOST;
config.db_port = process.env.DB_PORT;
config.db_name = process.env.DB_NAME;
config.db_state_name = process.env.DB_STATE_NAME;
config.db_user = process.env.DB_USER;
config.db_password = process.env.DB_PASSWORD;
config.jwt_private = fs.readFileSync(path.join(__dirname, config.app + '-private.key'), 'utf8');
config.jwt_public = fs.readFileSync(path.join(__dirname, config.app + '-public.key'), 'utf8');
config.jwt_expiration = "12h";
config.jwt_algorithm = "RS256";
config.otsdb_host = "sd5-data.engr.uconn.edu"
config.otsdb_port = 4242
module.exports = config;