use config/apps.ts for configuration
This commit is contained in:
parent
082b815989
commit
60b5f21f76
@ -4,6 +4,7 @@ module.exports = {
|
||||
secret : process.env.SECRET || 'test',
|
||||
devToken: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7ImNsaWVudCI6InRlc3QiLCJjbGllbnRfdHlwZSI6InNpdGUiLCJ1c2VyX3R5cGUiOiJ1c2VyIiwidXNlcl9pZCI6MjAwLCJjaGFubmVsIjoidGVzdF9jaGFubmVsIn0sImF1ZCI6ImludGVybmFsIiwiaXNzIjoiWWFyZHN0aWNrIFNvZnR3YXJlIiwic3ViIjoiQnJhaWQgSldUIn0.5KNCov_EW1cycT4Ay0oSvk4Z4PHFedd3bWOyqkHHTBQ',
|
||||
port: process.env.PORT || 80,
|
||||
httpPort: process.env.HTTP_PORT || 8080,
|
||||
hostname: process.env.HOSTNAME || 'ysbraid.localhost',
|
||||
environment: process.env.ENVIRONMENT || 'development',
|
||||
log_level: process.env.LOG_LEVEL || 'debug',
|
||||
@ -15,5 +16,6 @@ module.exports = {
|
||||
audience: 'internal',
|
||||
algorithm: ['HS256']
|
||||
},
|
||||
messageTypes : ['broadcast', 'direct', 'changeChannel']
|
||||
messageTypes : ['broadcast', 'direct', 'changeChannel'],
|
||||
archimedesToken: process.env.ARCHIMEDES_INTEGRATION_TOKEN || 'sha1=baddbeef'
|
||||
};
|
||||
|
@ -4,8 +4,10 @@ const logger = require('./logger');
|
||||
const url = require('url');
|
||||
const http = require('http');
|
||||
const crypto = require('crypto');
|
||||
const AUTH_TOKEN = process.env.ARCHIMEDES_INTEGRATION_TOKEN || 'sha1=baddbeef'
|
||||
const HTTP_PORT = process.env.HTTP_PORT || 80
|
||||
const app = require('./config/app');
|
||||
|
||||
const AUTH_TOKEN = app.archimedesToken;
|
||||
const HTTP_PORT = app.httpPort;
|
||||
|
||||
import { Server, IncomingMessage, ServerResponse } from 'http'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user