first
This commit is contained in:
441
safekiso-server/config.safekiso.prod.js
Normal file
441
safekiso-server/config.safekiso.prod.js
Normal file
@@ -0,0 +1,441 @@
|
||||
// config for safekiso
|
||||
var header = {
|
||||
title: 'config for safekiso',
|
||||
version: '1.0.0',
|
||||
responseTag: 'toXicWordFilteraPIversion1',
|
||||
versionTag: '202209011212',
|
||||
};
|
||||
exports.header = header;
|
||||
|
||||
var options = {
|
||||
server: {
|
||||
basePort: 3000,
|
||||
logBase: './logs/',
|
||||
},
|
||||
|
||||
db: {
|
||||
host: '172.26.37.202',
|
||||
user: 'kiso',
|
||||
password: 'nswd39iLrsiWFhq@r',
|
||||
database: 'pond_v2',
|
||||
},
|
||||
|
||||
redis: {
|
||||
host: '172.26.37.202',
|
||||
port: 6379,
|
||||
},
|
||||
|
||||
aws: {
|
||||
accessKeyId: 'AKIA4Y7BX6LLFFJGEQ7L',
|
||||
secretAccessKey: 'g9luquNXTcrbZmRU+x23oMH7GOS7JRyxAHLBXSO2',
|
||||
|
||||
bucketName: 'bucket-g9bbf2',
|
||||
region: 'ap-northeast-2',
|
||||
prefix: 'pond_v2:',
|
||||
},
|
||||
};
|
||||
exports.options = options;
|
||||
|
||||
var bouncy = {
|
||||
destinations: {
|
||||
'safekiso.com': {
|
||||
type: 'safekiso',
|
||||
port: options.server.basePort,
|
||||
},
|
||||
'www.safekiso.com': {
|
||||
type: 'safekiso',
|
||||
port: options.server.basePort,
|
||||
},
|
||||
},
|
||||
sshDiff: 443,
|
||||
};
|
||||
exports.bouncy = bouncy;
|
||||
|
||||
const monitorInfo = {
|
||||
senderEmail: 'kiso.kss.info@tckdigital.com',
|
||||
receiverEmail: 'kiso.kss.info@tckdigital.com',
|
||||
oauthInfo: {
|
||||
type: 'OAuth2',
|
||||
user: 'kiso.kss.info@tckdigital.com',
|
||||
clientId:
|
||||
'106796424035-575i0ll7vb773vhdmggehsh4am2f1u13.apps.googleusercontent.com',
|
||||
clientSecret: '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',
|
||||
refreshToken:
|
||||
'1//042zDg0ELgrjSCgYIARAAGAQSNwF-L9IrEeV76suNnFSzTWTstiGBmNNYlZ4mW8Z7u3eIURerBs8pL5Ujd-TuqJMUfbX21yQ9VLA',
|
||||
accessToken:
|
||||
'ya29.a0AXeO80R65nrC-pzM75xbERTynR5QQwNIhxYDKrqUQOHtNzpkNeRfal079h3D5z9_LJTPy_X1H2g756V4snuzlJzNP_rrsxvXsOFyF0QS2QPLYxxac-CGtiLHlqbJMwd9gmDeCBvaD_wR8unKBILQtgvS6W46RppsZ4CT0vMaaCgYKAZgSARASFQHGX2MiwYgaDqvRK-SHweaGP7wFzg0175',
|
||||
expires: 3600,
|
||||
},
|
||||
}
|
||||
|
||||
var configPool = {
|
||||
bouncy: {
|
||||
type: 'bouncy',
|
||||
name: 'bouncy',
|
||||
port: options.server.basePort,
|
||||
log: options.server.logBase + 'bouncy/',
|
||||
cache: './caches/bouncy',
|
||||
upload: './uploads/bouncy',
|
||||
debug: './debugs',
|
||||
monitor: monitorInfo,
|
||||
certPaths: {
|
||||
privateKey: './certs/wildcard_safekiso_com/_safekiso_com.key',
|
||||
certificate: './certs/wildcard_safekiso_com/_safekiso_com.crt',
|
||||
ca: './certs/wildcard_safekiso_com/_safekiso_com.bdl',
|
||||
},
|
||||
},
|
||||
|
||||
safekiso1: {
|
||||
type: 'safekiso',
|
||||
name: 'KISO Safeguard System',
|
||||
port: options.server.basePort,
|
||||
db: { ...options.db, database: 'safekiso' },
|
||||
log: options.server.logBase + 'safekiso/',
|
||||
cache: './caches/safekiso1',
|
||||
upload: './uploads/safekiso1',
|
||||
debug: './debugs',
|
||||
master: false,
|
||||
allowSignup: false,
|
||||
likeToggleFlag: true,
|
||||
wsUrl: 'wss://www.safekiso.com/',
|
||||
baseUrl: 'www.safekiso.com',
|
||||
boom: {
|
||||
basePath: 'logs/prod/',
|
||||
},
|
||||
clientDistInfo: {
|
||||
fromPath: 'dist/prod/client.tgz',
|
||||
},
|
||||
certPaths: {
|
||||
privateKey: './certs/wildcard_safekiso_com/_safekiso_com.key',
|
||||
certificate: './certs/wildcard_safekiso_com/_safekiso_com.crt',
|
||||
ca: './certs/wildcard_safekiso_com/_safekiso_com.bdl',
|
||||
},
|
||||
redis: {
|
||||
prefix: 'sess_safekiso::',
|
||||
db: 1,
|
||||
},
|
||||
cookie: {
|
||||
path: '/',
|
||||
sameSite: 'None',
|
||||
secure: true,
|
||||
|
||||
maxAge: 1000 * 60 * 60 * 1, // 1 hours
|
||||
},
|
||||
passport: {
|
||||
// Inspond Co., Ltd. at jolly73@inspond.com
|
||||
facebook: {
|
||||
clientID: '',
|
||||
clientSecret: '',
|
||||
callbackURL: '',
|
||||
passReqToCallback: true,
|
||||
profileFields: [
|
||||
'id',
|
||||
'displayName',
|
||||
'email',
|
||||
'name',
|
||||
'gender',
|
||||
'picture.type(large)',
|
||||
],
|
||||
},
|
||||
local: {
|
||||
usernameField: 'userName',
|
||||
passwordField: 'password',
|
||||
passReqToCallback: true,
|
||||
},
|
||||
// WWW at jolly73@inspond.com
|
||||
google: {
|
||||
clientID: '',
|
||||
clientSecret: '',
|
||||
callbackURL: '',
|
||||
},
|
||||
kakao: {
|
||||
clientID: '',
|
||||
callbackURL: '',
|
||||
},
|
||||
apple: {
|
||||
clientID: '',
|
||||
teamID: '',
|
||||
callbackURL: '',
|
||||
keyID: '',
|
||||
privateKeyLocation: '',
|
||||
passReqToCallback: true,
|
||||
scope: 'name email',
|
||||
},
|
||||
},
|
||||
|
||||
jwt: {
|
||||
exp: '1h', // '2 days', '2d', '10h', '7d' etc...
|
||||
secretKey: 'pone-v1, this is most common start point of project.',
|
||||
},
|
||||
|
||||
monitor: monitorInfo,
|
||||
|
||||
allowedTag: ['202001300000'],
|
||||
|
||||
googleCredentials: {
|
||||
'pond-one-google-sheets': {
|
||||
type: '',
|
||||
project_id: '',
|
||||
private_key_id: '',
|
||||
private_key: '',
|
||||
client_email: '',
|
||||
client_id: '',
|
||||
auth_uri: '',
|
||||
token_uri: '',
|
||||
auth_provider_x509_cert_url: '',
|
||||
client_x509_cert_url: '',
|
||||
},
|
||||
},
|
||||
|
||||
import: {
|
||||
uid: '',
|
||||
key: '',
|
||||
secret: '',
|
||||
},
|
||||
|
||||
sms: {
|
||||
api_key: '',
|
||||
api_secret: '',
|
||||
default_from: '',
|
||||
},
|
||||
},
|
||||
|
||||
safekiso2: {
|
||||
type: 'safekiso',
|
||||
name: 'KISO Safeguard System',
|
||||
port: options.server.basePort,
|
||||
db: { ...options.db, database: 'safekiso' },
|
||||
log: options.server.logBase + 'safekiso/',
|
||||
cache: './caches/safekiso2',
|
||||
upload: './uploads/safekiso2',
|
||||
debug: './debugs',
|
||||
master: false,
|
||||
allowSignup: false,
|
||||
likeToggleFlag: true,
|
||||
wsUrl: 'wss://www.safekiso.com/',
|
||||
baseUrl: 'www.safekiso.com',
|
||||
boom: {
|
||||
basePath: 'logs/prod/',
|
||||
},
|
||||
clientDistInfo: {
|
||||
fromPath: 'dist/prod/client.tgz',
|
||||
},
|
||||
certPaths: {
|
||||
privateKey: './certs/wildcard_safekiso_com/_safekiso_com.key',
|
||||
certificate: './certs/wildcard_safekiso_com/_safekiso_com.crt',
|
||||
ca: './certs/wildcard_safekiso_com/_safekiso_com.bdl',
|
||||
},
|
||||
redis: {
|
||||
prefix: 'sess_safekiso::',
|
||||
db: 1,
|
||||
},
|
||||
cookie: {
|
||||
path: '/',
|
||||
sameSite: 'None',
|
||||
secure: true,
|
||||
|
||||
maxAge: 1000 * 60 * 60 * 1, // 1 hours
|
||||
},
|
||||
passport: {
|
||||
|
||||
facebook: {
|
||||
clientID: '',
|
||||
clientSecret: '',
|
||||
callbackURL: '',
|
||||
passReqToCallback: true,
|
||||
profileFields: [
|
||||
'id',
|
||||
'displayName',
|
||||
'email',
|
||||
'name',
|
||||
'gender',
|
||||
'picture.type(large)',
|
||||
],
|
||||
},
|
||||
local: {
|
||||
usernameField: 'userName',
|
||||
passwordField: 'password',
|
||||
passReqToCallback: true,
|
||||
},
|
||||
// WWW at jolly73@inspond.com
|
||||
google: {
|
||||
clientID: '',
|
||||
clientSecret: '',
|
||||
callbackURL: '',
|
||||
},
|
||||
kakao: {
|
||||
clientID: '',
|
||||
|
||||
callbackURL: '',
|
||||
},
|
||||
apple: {
|
||||
clientID: '',
|
||||
teamID: '',
|
||||
callbackURL: '',
|
||||
keyID: '',
|
||||
privateKeyLocation: '',
|
||||
passReqToCallback: true,
|
||||
scope: 'name email',
|
||||
},
|
||||
},
|
||||
|
||||
jwt: {
|
||||
exp: '1h', // '2 days', '2d', '10h', '7d' etc...
|
||||
secretKey: 'pone-v1, this is most common start point of project.',
|
||||
},
|
||||
|
||||
monitor: monitorInfo,
|
||||
|
||||
allowedTag: ['202001300000'],
|
||||
|
||||
googleCredentials: {
|
||||
'pond-one-google-sheets': {
|
||||
type: '',
|
||||
project_id: '',
|
||||
private_key_id: '',
|
||||
private_key: '',
|
||||
client_email: '',
|
||||
client_id: '',
|
||||
auth_uri: '',
|
||||
token_uri: '',
|
||||
auth_provider_x509_cert_url: '',
|
||||
client_x509_cert_url: '',
|
||||
},
|
||||
},
|
||||
|
||||
import: {
|
||||
uid: '',
|
||||
key: '',
|
||||
secret: '',
|
||||
},
|
||||
|
||||
sms: {
|
||||
api_key: '',
|
||||
api_secret: '',
|
||||
default_from: '',
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
safekiso3: {
|
||||
type: 'safekiso',
|
||||
name: 'KISO Safeguard System',
|
||||
port: options.server.basePort,
|
||||
db: { ...options.db, database: 'safekiso' },
|
||||
log: options.server.logBase + 'safekiso/',
|
||||
cache: './caches/safekiso3',
|
||||
upload: './uploads/safekiso3',
|
||||
debug: './debugs',
|
||||
master: false,
|
||||
allowSignup: false,
|
||||
likeToggleFlag: true,
|
||||
wsUrl: 'wss://www.safekiso.com/',
|
||||
baseUrl: 'www.safekiso.com',
|
||||
boom: {
|
||||
basePath: 'logs/prod/',
|
||||
},
|
||||
clientDistInfo: {
|
||||
fromPath: 'dist/prod/client.tgz',
|
||||
},
|
||||
certPaths: {
|
||||
privateKey: './certs/wildcard_safekiso_com/_safekiso_com.key',
|
||||
certificate: './certs/wildcard_safekiso_com/_safekiso_com.crt',
|
||||
ca: './certs/wildcard_safekiso_com/_safekiso_com.bdl',
|
||||
},
|
||||
redis: {
|
||||
prefix: 'sess_safekiso::',
|
||||
db: 1,
|
||||
},
|
||||
cookie: {
|
||||
path: '/',
|
||||
sameSite: 'None',
|
||||
secure: true,
|
||||
|
||||
maxAge: 1000 * 60 * 60 * 1, // 1 hours
|
||||
},
|
||||
passport: {
|
||||
|
||||
facebook: {
|
||||
clientID: '',
|
||||
clientSecret: '',
|
||||
callbackURL: '',
|
||||
passReqToCallback: true,
|
||||
profileFields: [
|
||||
'id',
|
||||
'displayName',
|
||||
'email',
|
||||
'name',
|
||||
'gender',
|
||||
'picture.type(large)',
|
||||
],
|
||||
},
|
||||
local: {
|
||||
usernameField: 'userName',
|
||||
passwordField: 'password',
|
||||
passReqToCallback: true,
|
||||
},
|
||||
// WWW at jolly73@inspond.com
|
||||
google: {
|
||||
clientID: '',
|
||||
clientSecret: '',
|
||||
callbackURL: '',
|
||||
},
|
||||
kakao: {
|
||||
clientID: '',
|
||||
callbackURL: '',
|
||||
},
|
||||
apple: {
|
||||
clientID: '',
|
||||
teamID: '',
|
||||
callbackURL: '',
|
||||
keyID: '',
|
||||
privateKeyLocation: '',
|
||||
passReqToCallback: true,
|
||||
scope: 'name email',
|
||||
},
|
||||
},
|
||||
|
||||
jwt: {
|
||||
exp: '1h', // '2 days', '2d', '10h', '7d' etc...
|
||||
secretKey: 'pone-v1, this is most common start point of project.',
|
||||
},
|
||||
|
||||
monitor: monitorInfo,
|
||||
|
||||
allowedTag: ['202001300000'],
|
||||
|
||||
googleCredentials: {
|
||||
'pond-one-google-sheets': {
|
||||
type: '',
|
||||
project_id: '',
|
||||
private_key_id: '',
|
||||
private_key: '',
|
||||
client_email: '',
|
||||
client_id: '',
|
||||
auth_uri: '',
|
||||
token_uri: '',
|
||||
auth_provider_x509_cert_url: '',
|
||||
client_x509_cert_url: '',
|
||||
},
|
||||
},
|
||||
|
||||
import: {
|
||||
uid: '',
|
||||
key: '',
|
||||
secret: '',
|
||||
},
|
||||
|
||||
sms: {
|
||||
api_key: '',
|
||||
api_secret: '',
|
||||
default_from: '',
|
||||
},
|
||||
},
|
||||
|
||||
sms: {
|
||||
api_key: '',
|
||||
api_secret: '',
|
||||
default_from: '',
|
||||
},
|
||||
};
|
||||
exports.configPool = configPool;
|
||||
Reference in New Issue
Block a user