Experimental sync to peers on localnetwork
|Jason Gerard DeRose|
This is an experimental feature to do automatic CouchDB replication to peers in the same Dmedia library.
First of all, this feature provides NO PRIVACY WHATSOEVER. It's secure in that non-authorized devices should not be able to write updates into your CouchDB, but it's totally insecure in that the replication is all in clear-text and non-authorized devices can capture the entire contents of your CouchDB.
Because of this, the feature is disabled by default and is deliberately difficult to enable. To peer your machines, start on one machine by running the new `init-library` script in the Dmedia source tree, like this:
The above JSON gets written to ~/.local/
In other words, each time you run init-library, all the values are random... but to have multiple machines in the same library, you have to copy the exact same library.json file around between them.