that's called continuous improvement

This commit is contained in:
yigid balaban 2024-09-18 01:07:55 +03:00
parent 287d8f5cb0
commit b6002a9afd
Signed by: fyb
GPG Key ID: CF1BBD1336C0A3D6
3 changed files with 11 additions and 1 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
login-mailer.service

View File

@ -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.

View File

@ -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"