select which transport to use by default
This commit is contained in:
@@ -29,6 +29,15 @@ vim /etc/ssh-notify/config.conf # edit in place
|
||||
chmod 600 /etc/ssh-notify/config.conf
|
||||
```
|
||||
|
||||
**Configuration Options:**
|
||||
|
||||
- `EMAIL_RECIPIENT`: Email address to receive notifications
|
||||
- `EMAIL_API_ENDPOINT`: API endpoint for sending emails
|
||||
- `TELEGRAM_BOT_TOKEN`: Your Telegram bot token
|
||||
- `TELEGRAM_CHAT_ID`: Telegram chat ID to receive notifications
|
||||
- `PAM_TRANSPORTS`: Space-separated list of transports for PAM mode (e.g., `"telegram email"`, `"telegram"`, `"email"`)
|
||||
- `LOG_FILE`: Path to log file (default: `/var/log/ssh-notify.log`)
|
||||
|
||||
### 3. PAM configuration
|
||||
|
||||
```sh
|
||||
@@ -54,13 +63,13 @@ The `ssh-notify.logrotate` tells `logrotate` to rotate `/var/log/ssh‑notify.lo
|
||||
|
||||
Feel free to contact me for collaboration on anything!
|
||||
|
||||
Yiğid BALABAN, <[fyb@fybx.dev][llmail]>
|
||||
Yiğid BALABAN, <[hey@yigid.dev][llmail]>
|
||||
|
||||
[My Website][llwebsite] • [X][llx] • [LinkedIn][lllinkedin]
|
||||
|
||||
2024
|
||||
|
||||
[llmail]: mailto:fyb@fybx.dev
|
||||
[llwebsite]: https://fybx.dev
|
||||
[llmail]: mailto:hey@yigid.dev
|
||||
[llwebsite]: https://yigid.dev
|
||||
[llx]: https://x.com/fybalaban
|
||||
[lllinkedin]: https://linkedin.com/in/fybx
|
||||
[lllinkedin]: https://linkedin.com/in/yigid
|
||||
|
||||
Reference in New Issue
Block a user