p2p user files sync login fix

This commit is contained in:
mrfry 2023-05-04 11:28:23 +02:00
parent a29d4d3541
commit a61e473df0
6 changed files with 215 additions and 83 deletions

View file

@ -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`