-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.local.yaml.example
More file actions
52 lines (46 loc) · 1.8 KB
/
Copy pathconfig.local.yaml.example
File metadata and controls
52 lines (46 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Локальный override-конфиг. Не коммить в git.
# Скопируй в config.local.yaml и заполни своими chat_id / title / mode.
telegram:
# Основной служебный канал по умолчанию — owner DM (TG_OWNER_ID).
# ops_topic_id нужен только если хочешь дублировать алерты/статусы
# ещё и в отдельный forum topic внутри forum_group_id.
ops_topic_id: 1234
health:
reminder_interval_hours: 4
heartbeat_interval_seconds: 30
worker_restart_backoff_seconds: 5
max_egress_probe_interval_seconds: 30
max_self_heal_grace_seconds: 180
max_self_heal_restart_cooldown_seconds: 1800
dm_history_sweep:
enabled: true
warmup_seconds: 600
warmup_interval_seconds: 120
steady_interval_seconds: 900
limit: 30
backfill_seconds: 172800
cycle_jitter_seconds: 30
per_chat_delay_seconds: 0.5
max:
# Основной production-режим: MAX API/CDN идёт через reverse Channel M.
# Роутер держит outbound SSH remote-forward на VPS, а bridge использует
# authenticated HTTP CONNECT к VPS-local listener. Telegram остаётся direct
# с VPS/host-а bridge.
egress:
active: "home_ru_proxy"
fallback_policy: "manual"
profiles:
home_ru_proxy:
type: "http_connect"
proxy_url: "${MAX_EGRESS_PROXY_URL}"
hetzner_direct:
type: "direct"
chats:
- max_chat_id: "-70000000000001"
title: "Семейный чат"
mode: "active"
- max_chat_id: "-70000000000002"
title: "Школьный чат"
mode: "readonly"
# DM-чаты можно не указывать:
# bridge сам разрезолвит имя собеседника при первом сообщении.