mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
p2p user files sync login fix
This commit is contained in:
parent
a29d4d3541
commit
a61e473df0
6 changed files with 215 additions and 83 deletions
|
@ -77,9 +77,9 @@ files `./src/modules.json`.
|
|||
|
||||
This server implements P2P functionality. It can fetch question databases and users from other
|
||||
server instances, and merge the response data to its own databases. The server also instantly sends
|
||||
new questions received from users and new users to all registered peers. The sync feature should be
|
||||
used for initialization, new user getting, and rarely for catching up, since all new questions
|
||||
should be received instantly.
|
||||
new questions received from users, new users and uploaded user files to all registered peers. The
|
||||
sync feature should be used for initialization and rarely for catching up, since important data is
|
||||
received instantly.
|
||||
|
||||
To setup P2P functionality you have to create a few files in `./data/p2p`:
|
||||
|
||||
|
@ -104,7 +104,7 @@ To setup P2P functionality you have to create a few files in `./data/p2p`:
|
|||
Public key is optional, but needed to encrypt and add the users database in the response, so they
|
||||
can be synced too.
|
||||
|
||||
New keys will be added during certain actions, such as: `sessionCookie` and `lastSync`
|
||||
New keys will be added during certain actions, such as: `sessionCookie` and `last${key}Sync`
|
||||
|
||||
### Using `/syncp2pdata`
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue