keycloak-demo/config/index.js

20 lines
685 B
JavaScript
Raw Permalink Normal View History

2021-09-01 12:46:41 +00:00
const { env } = process
2021-08-31 10:24:42 +00:00
module.exports = {
server: {
url: env.SERVER_URL || 'http://localhost:10230',
port: parseInt(env.SERVER_PORT, 10) || 10230,
2021-09-01 12:46:41 +00:00
jwt_secret: env.SERVER_JWT_SECRET || 'testsecret',
2021-09-08 09:26:46 +00:00
jwt_expire: parseInt(env.SERVER_JWT_EXPIRE, 10) || 60 * 60 * 24 * 30, // 30 day
frontend_url: env.FRONTEND_URL || 'http://localhost:4200'
2021-08-31 10:24:42 +00:00
},
sso: {
authorized_endpoint: env.SSO_AUTHORIZED_ENDPOINT || '',
token_endpoint: env.SSO_TOKEN_ENDPOINT || '',
2021-09-01 12:46:41 +00:00
userinfo_endpoint: env.SSO_USERINFO_ENDPOINT || '',
2021-08-31 10:24:42 +00:00
logout_endpoint: env.SSO_LOGOUT_ENDPOINT || '',
client_id: env.SSO_CLIENT_ID || '',
2021-09-01 12:46:41 +00:00
client_secret: env.SSO_CLIENT_SECRET || ''
}
}