Kontaktformular-Dienst (Node + nodemailer), self-hosted für Coolify
- POST /api/kontakt: validiert, Honeypot-Spamschutz, Rate-Limit (5/10min) - Versand per SMTP über eigenes Postfach, keine Speicherung/DB - CORS auf die eigene Website beschränkt (ALLOWED_ORIGIN) - Konfiguration komplett über Environment-Variablen (.env.example) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
commit
a617846aa9
6 files changed
+994
No files matched your search
@@ -0,0 +1,19 @@
|
||||
# Diese Werte in Coolify als Environment-Variablen setzen (NICHT committen).
|
||||
|
||||
# Welche Website darf das Formular abschicken (CORS). Kommagetrennt möglich.
|
||||
ALLOWED_ORIGIN=https://atilgan-gartenbau.de,https://www.atilgan-gartenbau.de
|
||||
|
||||
# SMTP-Zugang des Postfachs, über das gesendet wird
|
||||
SMTP_HOST=mail.euer-provider.de
|
||||
SMTP_PORT=587
|
||||
SMTP_SECURE=false # true bei Port 465
|
||||
SMTP_USER=info@adnan-atilgan.de
|
||||
SMTP_PASS=euer-postfach-passwort
|
||||
|
||||
# Empfänger & Absender
|
||||
MAIL_TO=info@adnan-atilgan.de
|
||||
MAIL_FROM=info@adnan-atilgan.de
|
||||
MAIL_SUBJECT_PREFIX=[Webseite]
|
||||
|
||||
# Port (Coolify setzt den i. d. R. selbst)
|
||||
PORT=3000
|
||||
Reference in new issue
Block a user