-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.example
48 lines (33 loc) · 1.36 KB
/
.env.example
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Server configuration
BACKEND_PORT=5000
DATABASE_CONNECT_URL=mongodb://127.0.0.1:27017/mychatbot
# Twitch application configuration
# CLIENT_ID and CLIENT_SECRET - both can be obtained from twitch apllication:
# Read it here:
# https://dev.twitch.tv/docs/authentication/register-app/
CLIENT_ID=<twitch application client id>
CLIENT_SECRET=<twitch application client secret>
# YOUTUBE_API_KEY_V3
# More info: https://developers.google.com/youtube/v3/getting-started
YOUTUBE_API_KEY_V3=keyapi
# ENCRYPTION_KEY - have to be 16 bytes string
# I've used crypto libaray: crypto.randomBytes(16).toString('hex')
ENCRYPTION_KEY=random_encryption_secret_stringkey
REDIRECT_URL=http://localhost:5000/auth/twitch/callback
# This is for cors origin options
LOCAL_FRONTEND_URL=http://localhost:5173
HOST_FRONTEND_URL=http://192.168.0.100:5173
#BOT_PASSWORD - can be obtained by accesing Implicit grant flow.
# More information:
# https://dev.twitch.tv/docs/authentication/getting-tokens-oauth/#implicit-grant-flow
BOT_PASSWORD=oauth:1234567890
BOT_USERNAME=botusername
#BOT_ID - can be obtained from twitch api or any external site
BOT_ID=123456789
# Must be same as backend localhost:port if app isn't hosted
# or ip:port if app is hosted through LAN network
VITE_BACKEND_URL=http://192.168.0.100:5000
# discord client token
DISCORD_CLIENT_TOKEN=
# discord client id
DISCORD_CLIENT_ID=