Hub-OS / website

https://hubos.dev
GNU General Public License v3.0
0 stars 1 forks source link

MongoDB storage option #4

Closed ArthurCose closed 1 year ago

ArthurCose commented 1 year ago

This is necessary on hosting platforms with read-only disks (the one the website is currently hosted on) and can help with scaling.

See the storage folder for details. storage/db.ts contains the interface needed and storage/disk.ts can be used as a reference.

If mongo environment variables exist the default export at the bottom of storage/db.ts should be set to a new instance of the mongo implementation.