Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

docs: add SMTP configuration details to environment setup and documentation

Andrej Acevskic2f096897c42
diff --git a/ENVIRONMENT_SETUP.md b/ENVIRONMENT_SETUP.md
index 01913a706..69ad22f10 100644
--- a/ENVIRONMENT_SETUP.md
+++ b/ENVIRONMENT_SETUP.md
@@ -45,6 +45,20 @@ Kaneo supports many optional configuration options including:
- Access control settings
- CORS configuration
+#### SMTP Configuration
+
+For sending emails (workspace invitations, magic links, etc.), configure these variables:
+- `SMTP_HOST` - SMTP server hostname
+- `SMTP_PORT` - SMTP server port
+- `SMTP_USER` - SMTP username
+- `SMTP_PASSWORD` - SMTP password
+- `SMTP_FROM` - From email address
+- `SMTP_SECURE` - Use TLS (default: `true`, set to `false` to disable)
+- `SMTP_REQUIRE_TLS` - Require TLS (default: `false`, set to `true` to require)
+- `SMTP_IGNORE_TLS` - Ignore TLS certificate errors (default: `false`, set to `true` for self-signed certificates)
+
+> **Note:** If you're using an SMTP server with a self-signed or invalid TLS certificate, set `SMTP_IGNORE_TLS=true` to bypass certificate validation.
+
For a complete list of all environment variables, their descriptions, and configuration options, see the [official documentation](https://kaneo.app/docs/core/installation/environment-variables).
## Common Issues & Troubleshooting
diff --git a/apps/docs/content/docs/core/installation/environment-variables.mdx b/apps/docs/content/docs/core/installation/environment-variables.mdx
index 2dd5d60d2..eee772f69 100644
--- a/apps/docs/content/docs/core/installation/environment-variables.mdx
+++ b/apps/docs/content/docs/core/installation/environment-variables.mdx
@@ -109,6 +109,7 @@ Name | Description |
| `SMTP_PASSWORD` | The SMTP password.
| `SMTP_FROM` | The SMTP from address.
| `SMTP_REQUIRE_TLS` | Whether to explicitly force to use TLS. [See more on](https://nodemailer.com/smtp#tls-options).
+| `SMTP_IGNORE_TLS` | Ignore TLS certificate errors. Set to `true` for self-signed or invalid certificates. Default: `false`.
## Key points
diff --git a/packages/email/src/send-email.tsx b/packages/email/src/send-email.tsx
index e6dd3c0d6..8f420ba05 100644
--- a/packages/email/src/send-email.tsx
+++ b/packages/email/src/send-email.tsx
@@ -20,6 +20,7 @@ const transporter = nodemailer.createTransport({
pass: process.env.SMTP_PASSWORD,
},
requireTLS: process.env.SMTP_REQUIRE_TLS === "true",
+ ignoreTLS: process.env.SMTP_IGNORE_TLS === "true",
});
export const sendMagicLinkEmail = async (