-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ts
29 lines (29 loc) · 993 Bytes
/
config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
export default {
app: {
port: Number(process.env.APP_PORT) || 5050,
host: process.env.APP_HOST || '127.0.0.1',
url: process.env.APP_URL || 'http://127.0.0.1:5050',
secret: process.env.APP_SECRET || 'codingblocks',
},
oneauth: {
url: process.env.ONEAUTH_URL || 'https://account.codingblocks.com',
clientId: Number(process.env.ONEAUTH_CLIENT_ID),
clientSecret: process.env.ONEAUTH_CLIENT_SECRET,
},
discord: {
guildId: process.env.DISCORD_GUILD_ID,
botToken: process.env.DISCORD_BOT_TOKEN,
clientId: process.env.DISCORD_CLIENT_ID,
clientSecret: process.env.DISCORD_CLIENT_SECRET,
scopes: ['identify', 'email', 'guilds.join', 'gdm.join'],
lobbyChannelId: process.env.DISCORD_LOBBY_CHANNEL_ID,
classroomChannelId: process.env.DISCORD_CLASSROOM_CHANNEL_ID,
},
cron: {
enabled: process.env.CRON_ENABLED === 'true',
},
sentry: {
enabled: process.env.NODE_ENV === 'production',
dsn: process.env.SENTRY_DSN,
},
};