From 96ddff147fde34994bb8a8682bd620abc4aa0fc9 Mon Sep 17 00:00:00 2001 From: Jackson Morgan Date: Wed, 27 Mar 2019 14:54:12 -0400 Subject: [PATCH] Updated readme and included error to inform users that multiuser cannot function without webids --- README.md | 13 ------------- bin/lib/start.js | 6 ++++++ 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index bf38ed16e..08030079b 100644 --- a/README.md +++ b/README.md @@ -116,19 +116,6 @@ See [Running Solid behind a reverse proxy](https://github.com/solid/node-solid-s > To use Gmail you may need to configure ["Allow Less Secure Apps"](https://www.google.com/settings/security/lesssecureapps) in your Gmail account unless you are using 2FA in which case you would have to create an [Application Specific](https://security.google.com/settings/security/apppasswords) password. You also may need to unlock your account with ["Allow access to your Google account"](https://accounts.google.com/DisplayUnlockCaptcha) to use SMTP. -### Run the Linked Data Platform (intermediate) -If you don't want WebID Authentication and Web Access Control, you can run a simple Linked Data Platform. - -```bash -# over HTTP -$ solid start --port 8080 --no-webid -# over HTTPS -$ solid start --port 8080 --ssl-key key.pem --ssl-cert cert.pem --no-webid -``` - -**Note:** if you want to run on HTTP, do not pass the `--ssl-*` flags, but keep `--no-webid` - - ### Extra flags (expert) The command line tool has the following options diff --git a/bin/lib/start.js b/bin/lib/start.js index 635b7b4cd..eb543ecf4 100644 --- a/bin/lib/start.js +++ b/bin/lib/start.js @@ -69,11 +69,17 @@ function bin (argv, server) { // Set up port argv.port = argv.port || 3456 + // Multiuser with no webid is not allowed + // Webid to be default in command line if (argv.webid !== false) { argv.webid = true } + if (!argv.webid && argv.multiuser) { + throw new Error('Server cannot operate as multiuser without webids') + } + // Signal handling (e.g. CTRL+C) if (process.platform !== 'win32') { // Signal handlers don't work on Windows.