Compare commits
2 Commits
8a51b0db79
...
3d672924e2
Author | SHA1 | Date | |
---|---|---|---|
3d672924e2 | |||
756f11e755 |
@ -51,8 +51,12 @@ DEBUG=True
|
||||
# Telegram
|
||||
API_TOKEN=Ваш_токен
|
||||
|
||||
# Database Postgres
|
||||
# Redis
|
||||
REDIS_URL=redis://redis_telegram_bot:6379
|
||||
|
||||
# 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 = "redis://redis_telegram_bot:6379"
|
||||
postgres_url: str = "postgresql+asyncpg://admin:admin@postgres_telegram_bot:5432/postgresdb"
|
||||
redis_url: str = os.getenv("REDIS_URL")
|
||||
postgres_url: str = os.getenv("POSTGRES_URL")
|
||||
|
||||
|
||||
SECRETS = Secrets()
|
||||
|
Loading…
x
Reference in New Issue
Block a user