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
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -40,7 +40,7 @@ logs/
|
|||
.dockerignore
|
||||
|
||||
# Environment
|
||||
# .env - НЕ в ignore, чтобы параметры проекта были в репозитории
|
||||
.env
|
||||
.env.local
|
||||
.env.backup
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue