@@ -271,7 +271,7 @@ NOVA provides several statistical meassures to investigate the agreement between
271271
272272 where $K$ defines the number of components (K-items or testlets)
273273
274- $\bar{r}$ is the mean of the $K(K-1)/2} K(K-1)/2 $ non-redundant correlation coefficients
274+ $\bar{r}$ is the mean of the $K(K-1)/2$ non-redundant correlation coefficients
275275
276276* Spearman Correlation:
277277
@@ -357,8 +357,8 @@ We will describe two strategies: a) set up MongoDB with Docker *or* b) set up Mo
357357First, we install Docker (< https://www.docker.com/ > ) and run:
358358
359359~~~~
360- docker pull mongo:3.6.0
361- docker run -d -p 27017-27019:27017-27019 --name nova mongo:3.6.0
360+ docker pull mongo:3.6
361+ docker run -d --restart unless-stopped - p 27017-27019:27017-27019 --name nova mongo:3.6
362362
363363
364364~~~~
@@ -377,12 +377,13 @@ MongoDB now runs on 127.0.0.1:27017 and we can connect to it:
377377
378378
379379~~~~
380-
381380docker exec -it nova bash
381+ ~~~~
382382
383- Enter:
384- mongo
383+ * Press <kbd >Enter</kbd >.*
385384
385+ ~~~~
386+ mongo
386387~~~~
387388
388389* or*
@@ -397,10 +398,12 @@ We add an administrator:
397398use admin
398399db.createUser({ user: 'admin', pwd: 'PASSWORD', roles: [ { role: "root", db: "admin" } ], customData: {fullname: "ADMIN", email: ' ', expertise: NumberInt(0)}});
399400exit
401+ ~~~~
400402
401- Enter:
402- exit
403+ * Press <kbd >Enter</kbd >.*
403404
405+ ~~~~
406+ exit
404407~~~~
405408
406409And reconnect afterwards:
@@ -440,11 +443,39 @@ db.createUser({ user: 'gold', pwd: 'PASSWORD1', roles: [ { role: "readWriteAnyDa
440443db.createUser({ user: 'system', pwd: 'PASSWORD2', roles: [ { role: "readWriteAnyDatabase", db: "admin" }, {"role" : "changeOwnPasswordCustomDataRole", "db" : "admin"} ], customData: {fullname: 'SYSTEM', email: ' ', expertise: NumberInt(0)} });
441444~~~~
442445
443- We can now test the server:
446+ We can now test the server:
444447
445- ~~~~
448+ ~~~~
446449show dbs
447- ~~~~
450+ ~~~~
451+
452+ If MongoDB runs on a different machine than NOVA, we recommend enabling TLS. A minimal container setup is:
453+
454+ 1 ) Create a server certificate and key on the MongoDB host (use your CA or self-signed for testing) and place them in one PEM file, e.g. ` mongo.pem ` .
455+
456+ 2 ) Start MongoDB with TLS enabled:
457+
458+ ~~~~
459+ docker run -d --restart unless-stopped \
460+ -p 27017:27017 \
461+ -v /path/to/certs:/certs:ro \
462+ --name nova \
463+ mongo:3.6.0 \
464+ --auth \
465+ --tlsMode requireTLS \
466+ --tlsCertificateKeyFile /certs/mongo.pem \
467+ --tlsCAFile /certs/ca.pem
468+ ~~~~
469+
470+ 3 ) Connect with TLS from NOVA or the shell (example):
471+
472+ ~~~~
473+ mongo --tls --host <mongo-host> --port 27017 \
474+ --tlsCAFile /path/to/ca.pem \
475+ -u admin -p PASSWORD --authenticationDatabase admin
476+ ~~~~
477+
478+ Make sure the host name in the certificate matches the address NOVA uses to connect (or include it in the certificate SANs).
448479
449480To connect to the MongoDB server in NOVA, we open the settings by clicking the wheel in the menu and switch to the 'Database' tab. Here we enter the host and port number of the MongoDB server and the user credentials. The dialog also allows it to customize the download and CML directory. After applying the changes, NOVA tries to connect to MongoDB. If a connection is established it will be displayed in the status bar.
450481
0 commit comments