Compare commits
No commits in common. "3d672924e281e5b56e18136f9d32892e79b0bb05" and "8a51b0db79078bdfa77d1fc2ed1fb682f7981b3f" have entirely different histories.
3d672924e2
...
8a51b0db79
@ -51,12 +51,8 @@ DEBUG=True
|
||||
# Telegram
|
||||
API_TOKEN=Ваш_токен
|
||||
|
||||
# Redis
|
||||
REDIS_URL=redis://redis_telegram_bot:6379
|
||||
|
||||
# Postgres
|
||||
# Database Postgres
|
||||
DATABASE_URL_LOCAL_MIGRATE=postgresql+asyncpg://admin:admin@localhost:5432/postgresdb
|
||||
POSTGRES_URL=postgresql+asyncpg://admin:admin@postgres_telegram_bot:5432/postgresdb
|
||||
POSTGRES_USER=admin
|
||||
POSTGRES_PASSWORD=admin
|
||||
POSTGRES_PORT=5432
|
||||
|
@ -23,8 +23,8 @@ def get_logger(filename: str = "/volumes/logs/main.log", level: str = "INFO") ->
|
||||
|
||||
class Secrets:
|
||||
bot_token: str = os.getenv("BOT_TOKEN")
|
||||
redis_url: str = os.getenv("REDIS_URL")
|
||||
postgres_url: str = os.getenv("POSTGRES_URL")
|
||||
redis_url: str = "redis://redis_telegram_bot:6379"
|
||||
postgres_url: str = "postgresql+asyncpg://admin:admin@postgres_telegram_bot:5432/postgresdb"
|
||||
|
||||
|
||||
SECRETS = Secrets()
|
||||
|
Loading…
x
Reference in New Issue
Block a user