diff --git a/README.md b/README.md index 5f197b7..e8e7516 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ root:~/pivot# npx community-solid-server -c ./config/prod.json ./custom-config.j 2024-11-13T11:28:12.002Z [ServerInitializer] {Primary} info: Listening to server at https://localhost/ ``` -Or on localhost: +Or on `https localhost`: ```bash git clone https://github.com/solid-contrib/pivot @@ -80,6 +80,21 @@ openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 3 npm start ``` +Or on `http localhost`, use `config/dev-http-suffix.json` +``` +npx community-solid-server -c ./config/dev-http-suffix.json ./custom-config.json -f ./data -p 3000 -b http://localhost:3000 -m . +``` +or `config/dev-http-subdomain.json` +When using localhost with subdomain you must also declaree the subdomain in `/etc/hosts`. +To create an account `bob.localhost:3000` you shall add the following record +``` +127.0.0.1 bob.localhost +``` +``` +npx community-solid-server -c ./config/dev-http-subdomain.json ./custom-config.json -f ./data -p 3000 -b http://localhost:3000 -m . +``` + + ## Why 'pivot'? _Short answer:_ we needed a name. ;) diff --git a/config/dev-http-subdomain.json b/config/dev-http-subdomain.json new file mode 100644 index 0000000..19abb8a --- /dev/null +++ b/config/dev-http-subdomain.json @@ -0,0 +1,49 @@ +{ + "comment": "Copied from https://github.com/SolidOS/css-mashlib/blob/ae21af4685f6c95c1f091cacd952831f272ea119/config/https-mashlib-subdomain-file.json, (1) pivot:config/http/handler/default.json, (2) pivot:config/storage/middleware/default.json, (3) pivot:config/pivot-overrides.json added as the last import", + "@context": [ + "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^7.0.0/components/context.jsonld", + "https://linkedsoftwaredependencies.org/bundles/npm/@solid/pivot/^1.0.0/components/context.jsonld" + ], + "import": [ + "css:config/app/init/default.json", + "css:config/app/main/default.json", + "css:config/app/variables/default.json", + "pivot:config/http/handler/default.json", + "css:config/http/middleware/default.json", + "css:config/http/notifications/all.json", + "css:config/http/server-factory/http.json", + "css:config/http/static/default.json", + "css:config/identity/access/public.json", + "css:config/identity/email/default.json", + "css:config/identity/handler/default.json", + "pivot:config/identity/oidc/default.json", + "css:config/identity/ownership/token.json", + "css:config/identity/pod/static.json", + "css:config/ldp/authentication/dpop-bearer.json", + "css:config/ldp/authorization/webacl.json", + "css:config/ldp/handler/default.json", + "css:config/ldp/metadata-parser/default.json", + "css:config/ldp/metadata-writer/default.json", + "css:config/ldp/modes/default.json", + "css:config/storage/backend/pod-quota-file.json", + "css:config/storage/key-value/resource-store.json", + "css:config/storage/location/pod.json", + "pivot:config/storage/middleware/default.json", + "css:config/util/auxiliary/acl.json", + "css:config/util/identifiers/subdomain.json", + + "css:config/util/logging/winston.json", + "css:config/util/representation-conversion/default.json", + "css:config/util/resource-locker/file.json", + "css:config/util/variables/default.json", + "pivot:config/pivot-overrides.json" + ], + "@graph": [ + { + "comment": [ + "A filesystem-based server with Databrowser as UI.", + "Derived from config/file-no-setup.json" + ] + } + ] +} diff --git a/config/dev-http-suffix.json b/config/dev-http-suffix.json new file mode 100644 index 0000000..fb5fa89 --- /dev/null +++ b/config/dev-http-suffix.json @@ -0,0 +1,49 @@ +{ + "comment": "Copied from https://github.com/SolidOS/css-mashlib/blob/ae21af4685f6c95c1f091cacd952831f272ea119/config/https-mashlib-subdomain-file.json, (1) pivot:config/http/handler/default.json, (2) pivot:config/storage/middleware/default.json, (3) pivot:config/pivot-overrides.json added as the last import", + "@context": [ + "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^7.0.0/components/context.jsonld", + "https://linkedsoftwaredependencies.org/bundles/npm/@solid/pivot/^1.0.0/components/context.jsonld" + ], + "import": [ + "css:config/app/init/default.json", + "css:config/app/main/default.json", + "css:config/app/variables/default.json", + "pivot:config/http/handler/default.json", + "css:config/http/middleware/default.json", + "css:config/http/notifications/all.json", + "css:config/http/server-factory/http.json", + "css:config/http/static/default.json", + "css:config/identity/access/public.json", + "css:config/identity/email/default.json", + "css:config/identity/handler/default.json", + "pivot:config/identity/oidc/default.json", + "css:config/identity/ownership/token.json", + "css:config/identity/pod/static.json", + "css:config/ldp/authentication/dpop-bearer.json", + "css:config/ldp/authorization/webacl.json", + "css:config/ldp/handler/default.json", + "css:config/ldp/metadata-parser/default.json", + "css:config/ldp/metadata-writer/default.json", + "css:config/ldp/modes/default.json", + "css:config/storage/backend/pod-quota-file.json", + "css:config/storage/key-value/resource-store.json", + "css:config/storage/location/pod.json", + "pivot:config/storage/middleware/default.json", + "css:config/util/auxiliary/acl.json", + "css:config/util/identifiers/suffix.json", + + "css:config/util/logging/winston.json", + "css:config/util/representation-conversion/default.json", + "css:config/util/resource-locker/file.json", + "css:config/util/variables/default.json", + "pivot:config/pivot-overrides.json" + ], + "@graph": [ + { + "comment": [ + "A filesystem-based server with Databrowser as UI.", + "Derived from config/file-no-setup.json" + ] + } + ] +}