This commit is contained in:
2026-04-07 14:50:23 +09:00
commit b4e485502b
4778 changed files with 2017091 additions and 0 deletions

View File

@@ -0,0 +1,209 @@
// 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: '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',
bucketName: 'bucket-g9bbf2',
region: 'ap-northeast-2',
prefix: 'pond_v2:',
},
};
exports.options = options;
var bouncy = {
destinations: {
'zabbix.safekiso.com': { type: 'safekiso', url: 'http://localhost' },
'admin.safekiso.com': {
type: 'safekiso',
port: options.server.basePort + 10,
},
},
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',
},
},
safekiso0: {
type: 'safekiso',
name: 'KISO Safeguard System',
port: options.server.basePort + 10,
db: { ...options.db, database: 'safekiso' },
log: options.server.logBase + 'safekiso/',
cache: './caches/safekiso0',
upload: './uploads/safekiso1',
debug: './debugs',
master: true,
allowSignup: false,
likeToggleFlag: true,
wsUrl: 'wss://admin.safekiso.com/',
baseUrl: 'admin.safekiso.com',
boom: {
basePath: 'logs/prod/',
},
clientDistInfo: {
fromPath: 'dist/mng/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;