Document Telegram gateway setup
This commit is contained in:
22
README.md
22
README.md
@@ -35,6 +35,28 @@ hermes status # 狀態
|
|||||||
hermes --help # 所有子指令
|
hermes --help # 所有子指令
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Telegram
|
||||||
|
|
||||||
|
透過 gateway 整合 Telegram bot。
|
||||||
|
|
||||||
|
| 項目 | 值 |
|
||||||
|
|------|----|
|
||||||
|
| Bot | 小幫手 (@SystemAidBot) |
|
||||||
|
| Token | `/root/.hermes/.env` 的 `TELEGRAM_BOT_TOKEN` |
|
||||||
|
| 白名單 | `TELEGRAM_ALLOWED_USERS=949023145`(限 Timmy 本人) |
|
||||||
|
| 服務 | systemd user service `hermes-gateway`,已啟用 linger(撐過登出 / 開機自啟) |
|
||||||
|
|
||||||
|
直接在 Telegram 跟 @SystemAidBot 對話即可。維運:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
hermes gateway status # 狀態
|
||||||
|
hermes gateway restart # 重啟
|
||||||
|
journalctl --user -u hermes-gateway -f # 即時 log
|
||||||
|
```
|
||||||
|
|
||||||
|
> 預設無白名單時會拒絕所有人;新使用者第一次傳訊會被擋並在 log 留下其 user ID,
|
||||||
|
> 把 ID 加進 `TELEGRAM_ALLOWED_USERS`(逗號分隔)再 `hermes gateway restart` 即可放行。
|
||||||
|
|
||||||
## 安全元件 tirith
|
## 安全元件 tirith
|
||||||
|
|
||||||
命令安全守衛 binary,安裝於 `/root/.hermes/bin/tirith`(v0.3.3)。
|
命令安全守衛 binary,安裝於 `/root/.hermes/bin/tirith`(v0.3.3)。
|
||||||
|
|||||||
Reference in New Issue
Block a user