Skip to content

MongoDB connection with SSL #126

@D-32

Description

@D-32

For anybody that's looking to connect to a database with SSL, I got it to work by modifying agendash-standalone.js.
Replace line 21 with:

const certFileBuf = fs.readFileSync(
  "mycert.pem"
);
const agenda = new Agenda({
  db: {
    address: program.db,
    collection: program.collection,
    options: {
      sslCA: certFileBuf,
    },
  },
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions