GJordao / simple-auth

An authentication service that aims to be simple and customisable
MIT License
3 stars 3 forks source link

Expose additional Nodemailer configurations #38

Closed nneves closed 2 years ago

nneves commented 2 years ago

Extend env var configuration to allow other SMPT connection configurations:

  1. secure
  2. not secure but force STARTTLS to be used
  3. not secure and don't use STARTTLS

New .env variables setup:

  1. secure

    SMTP_SECURE=true
    SMTP_REQUIRE_TLS=false
    SMTP_IGNORE_TLS=false
  2. not secure but force STARTTLS to be used

    SMTP_SECURE=false
    SMTP_REQUIRE_TLS=true
    SMTP_IGNORE_TLS=false
  3. not secure and don't use STARTTLS

    SMTP_SECURE=false
    SMTP_REQUIRE_TLS=false
    SMTP_IGNORE_TLS=true