Skip to content

Commit f58f6aa

Browse files
author
Andrei
committed
Merge pull request nodeSolidServer#218 from linkeddata/dz_document_create_admin
Document `createAdmin` flag (single user mode)
2 parents aedeea1 + cb3a27b commit f58f6aa

3 files changed

Lines changed: 25 additions & 6 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ node_modules/
33
*.swp
44
.tern-port
55
npm-debug.log
6+
.acl
7+
profile/

README.md

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Options:
4040
-C, --cert Path to the ssl cert file
4141
--webid Enable WebID+TLS authentication
4242
-idp, --identity-provider Allow registration of WebIDs
43+
--create-admin Allow a user to set up their initial identity in single-user mode
4344
-s, --secret HTTP Session cookie secret key (e.g. "your secret phrase")
4445
-fU, --force-user Force a WebID to always be logged in (useful when offline)
4546
-P, --proxy Use a proxy on example.tld/proxyPath
@@ -53,21 +54,37 @@ Options:
5354

5455
### Running the server
5556

56-
#### Solid server mode (HTTPS / WebID enabled)
57+
#### Solid server, Single User mode (HTTPS / WebID enabled)
5758

58-
To start `ldnode` in Solid server mode, you will need to enable the `--webid`
59-
flag, and also pass in a valid SSL key and certificate files:
59+
To start `ldnode` in Solid Single User mode, you will need to enable the
60+
`--webid` flag, and also pass in a valid SSL key and certificate files.
61+
LDNode will use these certificates for its own server use (these are
62+
different from the Admin user identity certificate discussed below).
63+
64+
**Initial Admin User Setup:**
65+
The *first* time you run `ldnode`, you will also want to use the
66+
`--create-admin` flag, to set up the initial Admin user identity and
67+
certificates.
68+
69+
```bash
70+
ldnode --webid --port 8443 --cert /path/to/cert --key /path/to/key --create-admin
71+
```
72+
73+
You can then visit your LDNode server (at `https://localhost:8443/`, if you're
74+
running it locally), and set up a new account.
75+
76+
You should then restart `ldnode`, this time without the `--create-admin` flag:
6077

6178
```bash
6279
ldnode --webid --port 8443 --cert /path/to/cert --key /path/to/key
6380
```
6481

65-
#### Solid server mode with WebID Identity Provider
82+
#### Solid server, Multi-user Mode (Allows account creation)
6683

6784
To allow users to create a WebID on your server:
6885

6986
```bash
70-
$ ldnode --webid --port 8443 --cert /path/to/cert --key /path/to/key -idp --root ./accounts
87+
ldnode --webid --port 8443 --cert /path/to/cert --key /path/to/key -idp --root ./accounts
7188
```
7289

7390
Your users will have a dedicated folder under `./accounts`. Also, your root domain's website will be in `./accounts/yourdomain.tld`.

bin/ldnode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ var argv = require('nomnom')
100100
.option('createAdmin', {
101101
full: 'create-admin',
102102
flag: true,
103-
help: 'Allow a user to set up its initial identity'
103+
help: 'Allow a user to set up their initial identity in single-user mode'
104104
})
105105
.parse()
106106

0 commit comments

Comments
 (0)