dcai / airnotifier

Push Notifications Server for Human Beings.
Other
602 stars 190 forks source link

Use one database only #226

Open wachjose88 opened 3 years ago

wachjose88 commented 3 years ago

Currently a database is created for each created app. In my opinion it would be better to use one database only and to use namespaces and collections for the apps.

Motivation:

  1. Security: A mongo user with very extensive privileges is currently required. A single database would enable the usage of a more restricted user.
  2. Shared-hosting database server: Because of the mentioned reasons, it is nearly impossible to use the database server for multiple applications (not airnotifier).
dcai commented 3 years ago

hi @wachjose88 I agree with your points, but I'm afraid I don't have the time to implement this at the moment.

wachjose88 commented 3 years ago

Thanks for your agreement. I am looking forward to the time you have enough time to implement this.