-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Allow custom Mongo database names #3191
Copy link
Copy link
Open
Labels
feature requestpriority: lowSomething that's not on top of the list. You are free to submit a pull request thoughSomething that's not on top of the list. You are free to submit a pull request though
Metadata
Metadata
Assignees
Labels
feature requestpriority: lowSomething that's not on top of the list. You are free to submit a pull request thoughSomething that's not on top of the list. You are free to submit a pull request though
Is your feature request related to a problem? Please elaborate.
Currently database name seems to be hardcoded in
clients.py. It's a bit tedious to changemodmail_botstrings inclients.pyevery time. This issue is especially apparent for those of us who run multiple modmail instances on the same machine, in our case it's different bot instances for different languages we support.Describe the solution you'd like
Perhaps add support for either database names in
CONNECTION_URIin.env(mongodb+srv://mongodburi/database_name) (default tomodmail_botif none provided)Does your solution involve any of the following?
Describe alternatives you've considered
Alternatively make a new
.envparam such asDATABASE_NAMEWho will this benefit?
People who run more than one instance of modmail bot on the same database, or people who prefer to have better configurability.
Additional Information
No response