Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions deploy/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

set -e

cd /home/fl1rix/SteelTime/

git pull origin main
docker compose pull
docker compose up -d
13 changes: 13 additions & 0 deletions deploy/hooks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
- id: deploy # станет частью url hooks/deploy
execute-command: /home/fl1rix/SteelTime/deploy/deploy.sh
command-working-directory: /home/fl1rix/SteelTime
trigger-rule:
match:
type: payload-hmac-sha256
secret: "ЗАМЕНИТЬ НА РЕАЛЬНЫЙ"
parametr:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (bug_risk): Проверьте написание ключа parametr в соответствии со схемой конфигурации вебхука.

В большинстве конфигураций вебхуков этот ключ называется parameter (или другим заранее определённым полем), а не parametr. При неверном названии ключа правило может быть проигнорировано. Пожалуйста, уточните корректное имя ключа в схеме конфигурации вашего сервиса вебхуков.

Original comment in English

issue (bug_risk): Check the parametr key spelling against the webhook config schema.

In most webhook configs this key is named parameter (or another defined field), not parametr. With the wrong key name the rule may be ignored. Please verify the correct key in your webhook service’s config schema.

source: header
name: X-Hub-Signature-256

# геренацию ключа openssl rand hex -32
# путь для конфига /etc/webhook.conf
2 changes: 1 addition & 1 deletion src/infrastructure/tasks/cleanup_magic_tokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

async def cleanup_telegram_tokens():
"""Очистка истекших токенов"""
async with SessionLocal() as db:
async with SessionLocal() as db: # type: ignore
logger.info("🔍 Очистка токенов...")
try:
await db.execute(delete(MagicToken).where(
Expand Down
Loading