modmail-dev / Modmail

A Discord bot that functions as a shared inbox between staff and members, similar to Reddit's Modmail.
https://docs.modmail.dev
GNU Affero General Public License v3.0
1.58k stars 4.59k forks source link

Custom database name #3279

Open Hackerjef opened 1 year ago

Hackerjef commented 1 year ago

Allows for custom database name through mongo's connection URI

Closes #3191

skybird23333 commented 1 year ago

I think .env.example should be updated as well

Jerrie-Aries commented 1 year ago

What is the format of the URI if we want to use the custom db name?

raidensakura commented 1 year ago

What is the format of the URI if we want to use the custom db name?

mongodb://myDBReader:D1fficultP%40ssw0rd@mongodb0.example.com:27017/your_db_name?someOptions as per docs

Hackerjef commented 1 year ago

@skybird23333 I mean its still a valid mongodb uri so It should still be fine? /shrug

@raidensakura Thanks!

Vedinsoh commented 1 year ago

Perhaps it would be good to update logviewer in the same way for consistency?