-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.env.example
25 lines (18 loc) · 1007 Bytes
/
.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
# [REQUIRED] Bot token given by @BotFather
BOT_TOKEN="123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11"
# [OPTIONAL] Webhook domain. Used to start bot in webhook mode. Remove to use polling
WEBHOOK_DOMAIN="https://mydomain.example"
# [OPTIONAL] Webhook port. Used when running in webhook mode. Remove to use the default one
WEBHOOK_PORT="2500"
# [OPTIONAL] API port. Used to get/set game scores to Telegram. Remove to use the default one
API_PORT="5000"
# [OTIONAL] Comma-separated list of Access-Control-Allow-Origin
# Use string or stringified RegExp
# If not present, '*' wildcard will be used
ALLOW_ORIGIN="https://origin.one,https://origin.two,/\.origin\.three$/"
# [REQUIRED] Secret for JWT. Can be generated by https://www.grc.com/passwords.htm
JWT_SECRET="YOUR_SECRET"
# [REQUIRED] Game URL. This URL will be opened by Telegram after clicking "Play" button
GAME_URL="https://mygamedomain.example"
# [OPTIONAL] Sentry DSN. Remove to disable Sentry logging
SENTRY_DSN="https://******@sentry.io/12345"