Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for "Bring your own DB" #36

Open
bdcorps opened this issue May 25, 2022 · 0 comments
Open

Allow for "Bring your own DB" #36

bdcorps opened this issue May 25, 2022 · 0 comments

Comments

@bdcorps
Copy link
Owner

bdcorps commented May 25, 2022

Currently Candymail uses an internal SQLLite DB to keep track of all the emails to be sent out. For more production use cases, we should have the option to specify an external DB.

The config object might look like:

{
    mail: {
      host: 'smtp.gmail.com',
      port: 465,
      secure: true,
      auth: {
        user: process.env.MAIL_USER,
        pass: process.env.MAIL_PASSWORD,
      },
      tls: {
        rejectUnauthorized: true,
      },
    },
    hosting: { url: process.env.HOSTING_URL },
    db: { url: "SQLITE_URL", reset: true },
    debug: { trace: true },
  }
@bdcorps bdcorps changed the title Bring your own DB Allow for "Bring your own DB" May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant