From b6002a9afd2c8ed3cec7c31c6eeffb90402694fc Mon Sep 17 00:00:00 2001 From: Yigid BALABAN Date: Wed, 18 Sep 2024 01:07:55 +0300 Subject: [PATCH] that's called continuous improvement --- .gitignore | 2 ++ README.md | 2 +- login-mailer.service.template | 8 ++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 login-mailer.service.template diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..922792f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +login-mailer.service + diff --git a/README.md b/README.md index 520c43f..c33b003 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ 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`. +Change `EMAIL` and `ENDPOINT` environment variables in `login-mailer.service.template` and copy to `login-mailer.service`. Run `install.sh`. `install.sh` and `uninstall.sh` provided for ease-of-use, places systemctl service and timer, and enables it. diff --git a/login-mailer.service.template b/login-mailer.service.template new file mode 100644 index 0000000..f248bbd --- /dev/null +++ b/login-mailer.service.template @@ -0,0 +1,8 @@ +[Unit] +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"