Mercurial > prosody-modules
view mod_storage_mongodb/README.markdown @ 5954:e5b5a74feb91
mod_rest: Workaround lack of number coercion in util.datamapper for HTTP upload
util.datamapper will not coerce a string into an integer like the
XEP-0363 'size' slot, which becomes a problem when using the HTTP GET
method, passing fields as ?query parameters which are always strings.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 19 Aug 2024 20:08:41 +0200 |
parents | 8de50be756e5 |
children |
line wrap: on
line source
--- labels: - 'Type-Storage' - 'Stage-Alpha' summary: MongoDB Storage Module ... Introduction ============ This is a storage backend that uses MongoDB. Depends on [luamongo bindings](https://github.com/mwild1/luamongo) This module is not under active development and has a number of issues related to limitations in MongoDB. It is not suitable for production use. Configuration ============= Copy the module to the prosody modules/plugins directory. In Prosody's configuration file, set: storage = "mongodb" MongoDB options are: Name Description ------------ ------------------------------------------------------------------- server hostname:port username your username for the given database password your password for the given database (either raw or pre-digested) is\_digest whether the password field has been pre-digested Compatibility ============= ------- --------------------------- trunk Untested, but should work ------- ---------------------------