refactor: move bot tokens to .env, remove hardcoded credentials
- Remove IS_PROD flag and hardcoded tokens from config.py - Read TELEGRAM_BOT_TOKEN and ADMINPANEL_TELEGRAM_BOT_TOKEN from env - Add env_file: .env to lichess-bot and admin-bot in docker-compose.yml - Add .env to .gitignore (no longer tracked) - Add .env.example with test tokens
This commit is contained in:
parent
a5e3e6903d
commit
8828375207
5 changed files with 13 additions and 25 deletions
6
.env.example
Normal file
6
.env.example
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# Docker Compose Project Name
|
||||
COMPOSE_PROJECT_NAME=lichess
|
||||
|
||||
# Telegram Bot Tokens (Test)
|
||||
TELEGRAM_BOT_TOKEN=7903295042:AAGBO2k8pfBDy4RoLRFsknwE7z0N-thAPI8
|
||||
ADMINPANEL_TELEGRAM_BOT_TOKEN=8588876086:AAHoZncfhTCbul1BblpvnZMzvz7jAYVFmcw
|
||||
Loading…
Add table
Add a link
Reference in a new issue