always the smallest details

This commit is contained in:
yigid balaban 2024-09-18 01:03:35 +03:00
parent 87a95b9d76
commit 287d8f5cb0
Signed by: fyb
GPG Key ID: CF1BBD1336C0A3D6
2 changed files with 5 additions and 2 deletions

View File

@ -1,11 +1,13 @@
# server-toolset
## login mailer.sh
## login-mailer.sh
Get an email when someone logs in on your server.
Requires you to host/use an email proxy. See [git.fybx.dev/fyb/mail-proxy](https://git.fybx.dev/fyb/mail-proxy) for a simple Express.js and nodemailer powered alternative. Fork and deploy to Vercel, it's set!
Don't forget to change `EMAIL` and `ENDPOINT` environment variables in `login-mailer.service`.
`install.sh` and `uninstall.sh` provided for ease-of-use, places systemctl service and timer, and enables it.
## credits

View File

@ -4,4 +4,5 @@ Description=Login Mailer
[Service]
Type=simple
ExecStart=/root/server-toolset/login-mailer.sh
Environment="EMAIL=your_email@example.org"
Environment="ENDPOINT=mail.example.org/api/mail"