{ "@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^4.0.0/components/context.jsonld", "import": [ "files-scs:config/app/main/default.json", "files-scs:config/app/init/default.json", "files-scs:config/app/setup/required.json", "files-scs:config/app/variables/default.json", "files-scs:config/http/handler/default.json", "files-scs:config/http/middleware/websockets.json", "files-scs:config/http/static/default.json", "files-scs:config/identity/access/public.json", "files-scs:config/identity/email/default.json", "files-scs:config/identity/handler/default.json", "files-scs:config/identity/ownership/token.json", "files-scs:config/identity/pod/static.json", "files-scs:config/identity/registration/enabled.json", "files-scs:config/ldp/authentication/dpop-bearer.json", "files-scs:config/ldp/authorization/webacl.json", "files-scs:config/ldp/handler/default.json", "files-scs:config/ldp/metadata-parser/default.json", "files-scs:config/ldp/metadata-writer/default.json", "files-scs:config/ldp/modes/default.json", "files-scs:config/storage/backend/file.json", "files-scs:config/storage/key-value/resource-store.json", "files-scs:config/storage/middleware/default.json", "files-scs:config/util/auxiliary/acl.json", "files-scs:config/util/identifiers/suffix.json", "files-scs:config/util/index/default.json", "files-scs:config/util/logging/winston.json", "files-scs:config/util/representation-conversion/default.json", "files-scs:config/util/resource-locker/memory.json", "files-scs:config/util/variables/default.json" ], "@graph": [ { "comment": [ "Adds CLI options --httpsKey and --httpsCert and uses those to start an HTTPS server.", "The http/server-factory import above has been omitted since that feature is set below." ] }, { "@id": "urn:solid-server-app-setup:default:CliExtractor", "@type": "YargsCliExtractor", "extendedParameters": { "httpsKey": { "demandOption": true, "requiresArg": true, "type": "string", "describe": "File path to the HTTPS key." }, "httpsCert": { "demandOption": true, "requiresArg": true, "type": "string", "describe": "File path to the HTTPS certificate." } } }, { "comment": "Adds resolvers to assign the CLI values to the Components.js variables.", "@id": "urn:solid-server-app-setup:default:SettingsResolver", "@type": "CombinedSettingsResolver", "resolvers": [ { "CombinedSettingsResolver:_resolvers_key": "urn:solid-server:custom:variable:httpsKey", "CombinedSettingsResolver:_resolvers_value": { "@type": "KeyExtractor", "key": "httpsKey" } }, { "CombinedSettingsResolver:_resolvers_key": "urn:solid-server:custom:variable:httpsCert", "CombinedSettingsResolver:_resolvers_value": { "@type": "KeyExtractor", "key": "httpsCert" } } ] }, { "comment": [ "Creates an HTTPS server with the settings provided via the command line.", "Replaces the example import from config/http/server-factory.https-example.json." ], "@id": "urn:solid-server:default:ServerFactory", "@type": "WebSocketServerFactory", "baseServerFactory": { "@id": "urn:solid-server:default:HttpServerFactory", "@type": "BaseHttpServerFactory", "handler": { "@id": "urn:solid-server:default:HttpHandler" }, "options_showStackTrace": { "@id": "urn:solid-server:default:variable:showStackTrace" }, "options_https": true, "options_key": { "@id": "urn:solid-server:custom:variable:httpsKey", "@type": "Variable" }, "options_cert": { "@id": "urn:solid-server:custom:variable:httpsCert", "@type": "Variable" } }, "webSocketHandler": { "@type": "UnsecureWebSocketsProtocol", "source": { "@id": "urn:solid-server:default:ResourceStore" } } } ] }