Added RethinkDB storage option & fixed config to use proper JSON

This commit is contained in:
PassTheMayo
2017-12-09 18:34:00 -06:00
parent cfef588283
commit ba5c6b8d16
5 changed files with 99 additions and 49 deletions

View File

@@ -174,6 +174,28 @@ forward on GETs.
All of which are optional except `type` with very logical default values.
### RethinkDB
To use the RethinkDB storage system, you must install the `rethinkdbdash` package via npm
`npm install rethinkdbdash`
Once you've done that, your config section should look like this:
``` json
{
"type": "rethinkdb",
"host": "127.0.0.1",
"port": 28015,
"db": "haste"
}
```
In order for this to work, the database must be pre-created before the script is ran.
Also, you must create an `uploads` table, which will store all the data for uploads.
You can optionally add the `user` and `password` properties to use a user system.
## Author
John Crepezzi <john.crepezzi@gmail.com>
@@ -206,4 +228,4 @@ SOFTWARE
* jQuery: MIT/GPL license
* highlight.js: Copyright © 2006, Ivan Sagalaev
* highlightjs-coffeescript: WTFPL - Copyright © 2011, Dmytrii Nagirniak
* highlightjs-coffeescript: WTFPL - Copyright © 2011, Dmytrii Nagirniak