From bc1399175a2601e44a4eda5b28dd3c30772d6575 Mon Sep 17 00:00:00 2001 From: Walter Bolles Date: Fri, 14 Mar 2025 19:06:52 -0400 Subject: Fix SMTP auth --- src/routes.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/routes.js b/src/routes.js index 49718ff..1c132ca 100755 --- a/src/routes.js +++ b/src/routes.js @@ -52,19 +52,20 @@ if (config.general.mail_service) { sendEmails = true; break; case "nodemailer": - nodemailerTransporter = nodemailer.createTransport({ + const nodemailerConfig = { host: config.nodemailer?.smtp_server, - port: config.nodemailer?.smtp_port, - secure: false, // true for 465, false for other ports - }); + port: Number(config.nodemailer?.smtp_port) || 587, + }; if (config.nodemailer?.smtp_username) { - nodemailerTransporter.auth = { + nodemailerConfig.auth = { user: config.nodemailer?.smtp_username, pass: config.nodemailer?.smtp_password }; } + nodemailerTransporter = nodemailer.createTransport(nodemailerConfig); + nodemailerTransporter.verify((error, success) => { if (error) { console.log(error); -- cgit v1.2.3 From f0159b8a53aa6f91b3f25dfc1aa17e145e7ddb0a Mon Sep 17 00:00:00 2001 From: Raphael Kabo Date: Mon, 17 Mar 2025 21:43:26 +0000 Subject: Update deploy workflow --- .github/workflows/deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 9b11022..0a2ca3c 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -14,7 +14,7 @@ jobs: mkdir -p ~/.ssh/ && touch ~/.ssh/known_hosts ssh-keyscan -t rsa ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts - - uses: webfactory/ssh-agent@v0.7.0 + - uses: webfactory/ssh-agent@v0.9.1 with: ssh-private-key: ${{ secrets.SSH_KEY }} -- cgit v1.2.3 From 97e4e4c890d28875213f96cebac816ae8bc7a188 Mon Sep 17 00:00:00 2001 From: Raphael Kabo Date: Mon, 17 Mar 2025 21:47:49 +0000 Subject: Remove RSA specification --- .github/workflows/deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 0a2ca3c..1d0330a 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -12,7 +12,7 @@ jobs: - name: Set up known_hosts file run: | mkdir -p ~/.ssh/ && touch ~/.ssh/known_hosts - ssh-keyscan -t rsa ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts + ssh-keyscan ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts - uses: webfactory/ssh-agent@v0.9.1 with: -- cgit v1.2.3 From 3ecf946ac59cb4eaca979947514e997bd87e2b02 Mon Sep 17 00:00:00 2001 From: Raphael Kabo Date: Mon, 17 Mar 2025 21:51:25 +0000 Subject: Add -H parameter --- .github/workflows/deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 1d0330a..5cb7500 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -12,7 +12,7 @@ jobs: - name: Set up known_hosts file run: | mkdir -p ~/.ssh/ && touch ~/.ssh/known_hosts - ssh-keyscan ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts + ssh-keyscan -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts - uses: webfactory/ssh-agent@v0.9.1 with: -- cgit v1.2.3 From be20a1b9778ba02c09395509c19ea267e395ad65 Mon Sep 17 00:00:00 2001 From: Raphael Kabo Date: Mon, 17 Mar 2025 21:54:37 +0000 Subject: Testing --- .github/workflows/deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 5cb7500..5ab925b 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -12,7 +12,7 @@ jobs: - name: Set up known_hosts file run: | mkdir -p ~/.ssh/ && touch ~/.ssh/known_hosts - ssh-keyscan -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts + # ssh-keyscan -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts - uses: webfactory/ssh-agent@v0.9.1 with: -- cgit v1.2.3 From fc78f8eb7723db727484d83016c7a633a03dbacb Mon Sep 17 00:00:00 2001 From: Raphael Kabo Date: Mon, 17 Mar 2025 21:59:54 +0000 Subject: I'm too tired to debug GHA frankly --- .github/workflows/deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 5ab925b..1d0330a 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -12,7 +12,7 @@ jobs: - name: Set up known_hosts file run: | mkdir -p ~/.ssh/ && touch ~/.ssh/known_hosts - # ssh-keyscan -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts + ssh-keyscan ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts - uses: webfactory/ssh-agent@v0.9.1 with: -- cgit v1.2.3