From 287d8f5cb07f8edfa96e024c62fc47c8d739572d Mon Sep 17 00:00:00 2001 From: Yigid BALABAN Date: Wed, 18 Sep 2024 01:03:35 +0300 Subject: [PATCH] always the smallest details --- README.md | 4 +++- login-mailer.service | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8e091c2..520c43f 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/login-mailer.service b/login-mailer.service index 87dfa98..f248bbd 100644 --- a/login-mailer.service +++ b/login-mailer.service @@ -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"