Skip to content
Snippets Groups Projects
Commit 2b6c8a05 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

fix doc. updagrade to libsodium 1.0.14

parent 7cedb50b
No related branches found
No related tags found
No related merge requests found
......@@ -37,19 +37,19 @@ Duniter4j has tree main components :
sudo apt-get install openjdk-8-jre
```
#### Install libsodium
### Install libsodium
[The Sodium crypto library (libsodium)](https://download.libsodium.org/doc/installation/) is a modern, easy-to-use software library for encryption, decryption, signatures, password hashing and more.
- Get libsodium
- Get libsodium (version 1.0.11 or newer)
```
wget -kL https://github.com/jedisct1/libsodium/releases/download/1.0.11/libsodium-1.0.11.tar.gz
tar -xvf libsodium-1.0.11.tar.gz
wget -kL https://github.com/jedisct1/libsodium/releases/download/1.0.14/libsodium-1.0.14.tar.gz
tar -xvf libsodium-1.0.14.tar.gz
```
- Installation:
```
cd libsodium-1.0.11
cd libsodium-1.0.14
sudo apt-get install build-essential
sudo ./configure
sudo make && make check
......
......@@ -162,7 +162,7 @@ duniter.security.enable: true
#
# Enable P2P synchronize between ES peers ? (default: true)
#
# duniter.p2p.enable: false
# duniter.p2p.enable: true
#
# Enable P2P websocket direct synchronisation ? (default: true)
#
......
#!/bin/sh
curl -XPOST 'http://localhost:9200/docstat/record' -d '
curl -XPOST 'https://g1-test.data.duniter.fr/docstat/record/_search?pretty' -d '
{
"index":"user",
"type":"profile",
"count":874,
"time":1505297350
}'
curl -XPOST 'http://localhost:9200/docstat/record/_search?pretty' -d '
{
"size": 0
}'
"size": 0,
"aggs": {
"range": {
"range": {
"field": "time",
"ranges": [
{"from":1506016800, "to": 1506178800 }
]
},
"aggs": {
"index": {
"terms": {
"field": "index",
"size": 0
},
"aggs" : {
"type": {
"terms": {
"field": "indexType",
"size": 0
},
"aggs": {
"max" : {
"max" : {
"field" : "count"
}
}
}
}
}
}
}
}
}
}'
\ No newline at end of file
......@@ -70,7 +70,7 @@ public class SynchroService extends AbstractService {
private static final String WS_CHANGES_URL = "/ws/_changes";
private HttpService httpService;
private NetworkService networkService;
//private NetworkService networkService;
private final Set<EndpointApi> peerApiFilters = Sets.newHashSet();
private final ThreadPool threadPool;
private final PeerDao peerDao;
......@@ -95,7 +95,7 @@ public class SynchroService extends AbstractService {
this.synchroExecutionDao = synchroExecutionDao;
threadPool.scheduleOnStarted(() -> {
httpService = serviceLocator.getHttpService();
networkService = serviceLocator.getNetworkService();
//networkService = serviceLocator.getNetworkService();
setIsReady(true);
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment