Logger and docker-compose.yml update

This commit is contained in:
machka
2025-05-21 12:23:11 +00:00
parent f6ce39f7c1
commit ba348eb639
2 changed files with 3 additions and 9 deletions
-7
View File
@@ -105,13 +105,6 @@ async def on_startup_configured(dispatcher: Dispatcher):
telegram_webhook_url_to_set = getattr(settings, telegram_webhook_url_to_set = getattr(settings,
'TELEGRAM_WEBHOOK_BASE_URL', None) 'TELEGRAM_WEBHOOK_BASE_URL', None)
if telegram_webhook_url_to_set: if telegram_webhook_url_to_set:
if settings.BOT_TOKEN in telegram_webhook_url_to_set:
logging.error(
f"CRITICAL SECURITY RISK: Bot token detected in TELEGRAM_WEBHOOK_BASE_URL ('{telegram_webhook_url_to_set}'). "
"This is a major security vulnerability. Webhook will NOT be set."
)
full_telegram_webhook_url = "ERROR_URL_TOKEN_DETECTED"
else:
full_telegram_webhook_url = f"{str(telegram_webhook_url_to_set).rstrip('/')}/{settings.BOT_TOKEN}" full_telegram_webhook_url = f"{str(telegram_webhook_url_to_set).rstrip('/')}/{settings.BOT_TOKEN}"
logging.info( logging.info(
+2 -1
View File
@@ -12,9 +12,10 @@ services:
- ./locales:/app/locales - ./locales:/app/locales
restart: unless-stopped restart: unless-stopped
postgres: remnawave-tg-shop-db:
image: postgres:17 image: postgres:17
container_name: remnawave-tg-shop-db container_name: remnawave-tg-shop-db
hostname: remnawave-tg-shop-db
env_file: env_file:
- .env - .env
volumes: volumes: