-
Notifications
You must be signed in to change notification settings - Fork 616
Migrating to 0.10.x
Starting with version 0.10.0 DemocracyOS supports:
-
TLS
encryption viaHTTPS
. Learn how to enableTLS
on ourHTTPS
wiki 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
citizens
db collection tousers
. - Added the required
JWT_SECRET
config 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
mongo
CLI - 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.js
mongoose 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!