@@ -229,26 +229,35 @@ docker run -p 8443:8443 --name solid nodesolidserver/node-solid-server
229229
230230This will enable you to login to solid on https://localhost:8443 and then create a new account
231231but not yet use that account. After a new account is made you will need to create an entry for
232- it in your local (/etc/)hosts file in line with the account and subdomain i.e.
233-
232+ it in your local (/etc/)hosts file in line with the account and subdomain, i.e. --
233+ ``` pre
234234127.0.0.1 newsoliduser.localhost
235-
235+ ```
236236Then you'll be able to use solid as intended.
237237
238238You can modify the config within the docker container as follows:
239239
240- - Copy the config to the current directory with: ` docker cp solid:/usr/src/app/config.json . `
240+ - Copy the config to the current directory with:
241+ ```
242+ docker cp solid:/usr/src/app/config.json .
243+ ```
241244 - Edit the ` config.json ` file
242- - Copy the file back with ` docker cp config.json solid:/usr/src/app/ `
243- - Restart the server with ` docker restart solid `
245+ - Copy the file back with
246+ ```
247+ docker cp config.json solid:/usr/src/app/
248+ ```
249+ - Restart the server with
250+ ```
251+ docker restart solid
252+ ```
244253
245254If you want to help improve the Docker image, then you can build it locally with:
246255``` bash
247256git clone https://github.com/solid/node-solid-server
248257cd node-solid-server
249258docker build .
250259```
251- We have automatic builds set up so commits to master will trigger a build of https://hub.docker.com/r/nodesolidserver/node-solid-server .
260+ We have automatic builds set up, so commits to master will trigger a build of https://hub.docker.com/r/nodesolidserver/node-solid-server .
252261
253262## Library Usage
254263
@@ -272,18 +281,18 @@ default settings.
272281
273282``` javascript
274283{
275- cache: 0 , // Set cache time (in seconds), 0 for no cache
276- live: true , // Enable live support through WebSockets
277- root: ' ./' , // Root location on the filesystem to serve resources
278- secret: ' node-ldp' , // Express Session secret key
279- cert: false , // Path to the ssl cert
280- key: false , // Path to the ssl key
281- mount: ' /' , // Where to mount Linked Data Platform
282- webid: false , // Enable WebID+TLS authentication
283- suffixAcl: ' .acl' , // Suffix for acl files
284- corsProxy: false , // Where to mount the CORS proxy
285- errorHandler: false , // function(err, req, res, next) to have a custom error handler
286- errorPages: false // specify a path where the error pages are
284+ cache: 0 , // Set cache time (in seconds), 0 for no cache
285+ live: true , // Enable live support through WebSockets
286+ root: ' ./' , // Root location on the filesystem to serve resources
287+ secret: ' node-ldp' , // Express Session secret key
288+ cert: false , // Path to the ssl cert
289+ key: false , // Path to the ssl key
290+ mount: ' /' , // Where to mount Linked Data Platform
291+ webid: false , // Enable WebID+TLS authentication
292+ suffixAcl: ' .acl' , // Suffix for acl files
293+ corsProxy: false , // Where to mount the CORS proxy
294+ errorHandler: false , // function(err, req, res, next) to have a custom error handler
295+ errorPages: false // specify a path where the error pages are
287296}
288297```
289298
0 commit comments