-
Notifications
You must be signed in to change notification settings - Fork 617
Migrating to 0.10.x
Starting with version 0.10.0 DemocracyOS supports:
-
TLSencryption viaHTTPS. Learn how to enableTLSon ourHTTPSwiki page. - JSON Web Token-powered session handling.
Additionally, we support two new languages:
- Ukrainian (thanks @tarasdudar!)
- Galician (thanks @dalareo and @diegomestizo!)
Breaking changes with all previous versions has been introduced:
- Renamed
citizensdb collection tousers. - Added the required
JWT_SECRETconfig setting.
There are two ways you can adress this:
NOTE: I'd suggest you back-up your db before doing anything; you can do this easily with mongodump. We're completely unresponsible for any data loss you may suffer.
- Rename your collection (recommended):
- Connect to your db with the
mongoCLI - Rename the collection with
db.citizens.renameCollection('users') - ???
- Profit!
REMEMBER when doing this, to update your db.aliases config under your DemocracyOS/notifier deployment!
- Add
{ collection: 'citizens' }to themodels/user.jsmongoose Schema.
This one's easy: just add the required JWT_SECRET config setting as an environment variable or under secret in your config file). The value can be any string. We use MD5 hashes of funny phrases.
Visit our official website - Developed by Democracia en Red and contributors from the world over!