Skip to content

Commit 6f0313f

Browse files
committed
Merge branch 'master' into develop
2 parents b8c90d8 + c953d91 commit 6f0313f

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

README.md

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ $ openssl genrsa 2048 > ../localhost.key
7777
$ openssl req -new -x509 -nodes -sha256 -days 3650 -key ../localhost.key -subj '/CN=*.localhost' > ../localhost.cert
7878
```
7979

80+
Note that this example creates the `localhost.cert` and `localhost.key` files
81+
in a directory one level higher from the current, so that you don't
82+
accidentally commit your certificates to `solid` while you're developing.
83+
8084
### Run multi-user server (intermediate)
8185

8286
You can run `solid` so that new users can sign up, in other words, get their WebIDs _username.yourdomain.com_.
@@ -97,10 +101,10 @@ $ solid start
97101
Otherwise, if you want to use flags, this would be the equivalent
98102

99103
```bash
100-
$ solid --multiuser --port 8443 --cert /path/to/cert --key /path/to/key --root ./accounts
104+
$ solid --multiuser --port 8443 --cert /path/to/cert --key /path/to/key --root ./data
101105
```
102106

103-
Your users will have a dedicated folder under `./accounts`. Also, your root domain's website will be in `./accounts/yourdomain.tld`. New users can create accounts on `/api/accounts/new` and create new certificates on `/api/accounts/cert`. An easy-to-use sign-up tool is found on `/api/accounts`.
107+
Your users will have a dedicated folder under `./data` at `./data/<username>.<yourdomain.tld>`. Also, your root domain's website will be in `./data/<yourdomain.tld>`. New users can create accounts on `/api/accounts/new` and create new certificates on `/api/accounts/cert`. An easy-to-use sign-up tool is found on `/api/accounts`.
104108

105109
### Running Solid behind a reverse proxy (such as NGINX)
106110
See [Running Solid behind a reverse proxy](https://github.com/solid/node-solid-server/wiki/Running-Solid-behind-a-reverse-proxy).
@@ -316,20 +320,8 @@ without them.
316320
When deploying `solid` in production, we recommend that you go the
317321
usual Certificate Authority route to generate your SSL certificate (as you
318322
would with any website that supports HTTPS). However, for testing it locally,
319-
you can easily generate a self-signed certificate for whatever domain you're
320-
working with.
321-
322-
For example, here is how to generate a self-signed certificate for `localhost`
323-
using the `openssl` library:
324-
325-
```bash
326-
327-
solid --webid --port 8443 --cert ../localhost.cert --key ../localhost.key -v
328-
```
329-
330-
Note that this example creates the `localhost.cert` and `localhost.key` files
331-
in a directory one level higher from the current, so that you don't
332-
accidentally commit your certificates to `solid` while you're developing.
323+
you can easily [generate a self-signed certificate for whatever domain you're
324+
Working with](https://github.com/solid/node-solid-server#how-do-i-get-an-ssl-key-and-certificate).
333325

334326
#### Accessing your server
335327

0 commit comments

Comments
 (0)