2021-08-31 10:24:42 +00:00
|
|
|
const { env } = process;
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
server: {
|
2021-09-01 11:30:52 +00:00
|
|
|
<<<<<<< HEAD
|
2021-09-01 11:30:21 +00:00
|
|
|
url: env.SERVER_URL || "http://localhost:10230",
|
2021-09-01 11:30:52 +00:00
|
|
|
=======
|
2021-08-31 10:24:42 +00:00
|
|
|
url: env.SERVER_URL || 'http://localhost:10230',
|
2021-09-01 11:30:52 +00:00
|
|
|
>>>>>>> c96cdf0ebd17f805235c6fa9eecf2ea79ecca19b
|
2021-08-31 10:24:42 +00:00
|
|
|
port: parseInt(env.SERVER_PORT, 10) || 10230,
|
2021-09-01 11:30:21 +00:00
|
|
|
jwt_secret: env.SERVER_JWT_SECRET || "testsecret",
|
2021-08-31 10:24:42 +00:00
|
|
|
jwt_expire: parseInt(env.SERVER_JWT_EXPIRE, 10) || 60 * 60 * 24 * 30, // 30 day
|
2021-09-01 11:30:52 +00:00
|
|
|
<<<<<<< HEAD
|
2021-08-31 10:24:42 +00:00
|
|
|
},
|
|
|
|
sso: {
|
2021-09-01 11:30:21 +00:00
|
|
|
authorized_endpoint: env.SSO_AUTHORIZED_ENDPOINT || "",
|
|
|
|
token_endpoint: env.SSO_TOKEN_ENDPOINT || "",
|
|
|
|
logout_endpoint: env.SSO_LOGOUT_ENDPOINT || "",
|
|
|
|
client_id: env.SSO_CLIENT_ID || "",
|
|
|
|
client_secret: env.SSO_CLIENT_SECRET || "",
|
2021-09-01 11:30:52 +00:00
|
|
|
=======
|
2021-08-31 10:24:42 +00:00
|
|
|
},
|
|
|
|
redis: {
|
|
|
|
host: env.REDIS_HOST || 'localhost',
|
|
|
|
port: parseInt(env.REDIS_PORT, 10) || 6379,
|
|
|
|
password: env.REDIS_PASSWORD || '',
|
|
|
|
prefix: env.REDIS_PREFIX || '',
|
|
|
|
db: parseInt(env.REDIS_DB, 10) || 0,
|
|
|
|
},
|
|
|
|
sso: {
|
|
|
|
authorized_endpoint: env.SSO_AUTHORIZED_ENDPOINT || '',
|
|
|
|
token_endpoint: env.SSO_TOKEN_ENDPOINT || '',
|
|
|
|
logout_endpoint: env.SSO_LOGOUT_ENDPOINT || '',
|
|
|
|
client_id: env.SSO_CLIENT_ID || '',
|
|
|
|
client_secret: env.SSO_CLIENT_SECRET || '',
|
2021-09-01 11:30:52 +00:00
|
|
|
>>>>>>> c96cdf0ebd17f805235c6fa9eecf2ea79ecca19b
|
2021-08-31 10:24:42 +00:00
|
|
|
},
|
|
|
|
};
|