@@ -28,112 +28,45 @@ setup_css() {
2828 mkdir -p config
2929 cat > ./config/css-config.json << EOF
3030{
31- "@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^4 .0.0/components/context.jsonld",
31+ "@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^5 .0.0/components/context.jsonld",
3232 "import": [
33- "files-scs :config/app/main/default.json",
34- "files-scs :config/app/init/initialize-prefilled-root.json",
35- "files-scs :config/app/setup/optional.json",
36- "files-scs :config/app/variables/default.json",
37- "files-scs :config/http/handler/default.json",
38- "files-scs :config/http/middleware/websockets.json",
39- "files-scs :config/http/server-factory/websockets.json",
40- "files-scs :config/http/static/default.json",
41- "files-scs :config/identity/access/public.json",
42- "files-scs :config/identity/email/default.json",
43- "files-scs :config/identity/handler/default.json",
44- "files-scs :config/identity/ownership/token.json",
45- "files-scs :config/identity/pod/static.json",
46- "files-scs :config/identity/registration/enabled.json",
47- "files-scs :config/ldp/authentication/dpop-bearer.json",
48- "files-scs :config/ldp/authorization/webacl.json",
49- "files-scs :config/ldp/handler/default.json",
50- "files-scs :config/ldp/metadata-parser/default.json",
51- "files-scs :config/ldp/metadata-writer/default.json",
52- "files-scs :config/ldp/modes/default.json",
53- "files-scs :config/storage/backend/memory.json",
54- "files-scs :config/storage/key-value/resource-store.json",
55- "files-scs :config/storage/middleware/default.json",
56- "files-scs :config/util/auxiliary/acl.json",
57- "files-scs :config/util/identifiers/suffix.json",
58- "files-scs :config/util/index/default.json",
59- "files-scs :config/util/logging/winston.json",
60- "files-scs :config/util/representation-conversion/default.json",
61- "files-scs :config/util/resource-locker/memory.json",
62- "files-scs :config/util/variables/default.json"
33+ "css :config/app/main/default.json",
34+ "css :config/app/init/initialize-prefilled-root.json",
35+ "css :config/app/setup/optional.json",
36+ "css :config/app/variables/default.json",
37+ "css :config/http/handler/default.json",
38+ "css :config/http/middleware/websockets.json",
39+ "css :config/http/server-factory/https- websockets.json",
40+ "css :config/http/static/default.json",
41+ "css :config/identity/access/public.json",
42+ "css :config/identity/email/default.json",
43+ "css :config/identity/handler/default.json",
44+ "css :config/identity/ownership/token.json",
45+ "css :config/identity/pod/static.json",
46+ "css :config/identity/registration/enabled.json",
47+ "css :config/ldp/authentication/dpop-bearer.json",
48+ "css :config/ldp/authorization/webacl.json",
49+ "css :config/ldp/handler/default.json",
50+ "css :config/ldp/metadata-parser/default.json",
51+ "css :config/ldp/metadata-writer/default.json",
52+ "css :config/ldp/modes/default.json",
53+ "css :config/storage/backend/memory.json",
54+ "css :config/storage/key-value/resource-store.json",
55+ "css :config/storage/middleware/default.json",
56+ "css :config/util/auxiliary/acl.json",
57+ "css :config/util/identifiers/suffix.json",
58+ "css :config/util/index/default.json",
59+ "css :config/util/logging/winston.json",
60+ "css :config/util/representation-conversion/default.json",
61+ "css :config/util/resource-locker/memory.json",
62+ "css :config/util/variables/default.json"
6363 ],
6464 "@graph": [
6565 {
6666 "comment": [
67- "Adds CLI options --httpsKey and --httpsCert and uses those to start an HTTPS server.",
68- "The http/server-factory import above has been omitted since that feature is set below."
67+ "Adds CLI options --httpsKey and --httpsCert and uses those to start an HTTPS server."
6968 ]
7069 },
71- {
72- "@id": "urn:solid-server-app-setup:default:CliExtractor",
73- "@type": "YargsCliExtractor",
74- "extendedParameters": {
75- "httpsKey": {
76- "demandOption": true,
77- "requiresArg": true,
78- "type": "string",
79- "describe": "File path to the HTTPS key."
80- },
81- "httpsCert": {
82- "demandOption": true,
83- "requiresArg": true,
84- "type": "string",
85- "describe": "File path to the HTTPS certificate."
86- }
87- }
88- },
89- {
90- "comment": "Adds resolvers to assign the CLI values to the Components.js variables.",
91- "@id": "urn:solid-server-app-setup:default:SettingsResolver",
92- "@type": "CombinedSettingsResolver",
93- "resolvers": [
94- {
95- "CombinedSettingsResolver:_resolvers_key": "urn:solid-server:custom:variable:httpsKey",
96- "CombinedSettingsResolver:_resolvers_value": {
97- "@type": "KeyExtractor",
98- "key": "httpsKey"
99- }
100- },
101- {
102- "CombinedSettingsResolver:_resolvers_key": "urn:solid-server:custom:variable:httpsCert",
103- "CombinedSettingsResolver:_resolvers_value": {
104- "@type": "KeyExtractor",
105- "key": "httpsCert"
106- }
107- }
108- ]
109- },
110- {
111- "comment": [
112- "Creates an HTTPS server with the settings provided via the command line.",
113- "Replaces the example import from config/http/server-factory.https-example.json."
114- ],
115- "@id": "urn:solid-server:default:ServerFactory",
116- "@type": "WebSocketServerFactory",
117- "baseServerFactory": {
118- "@id": "urn:solid-server:default:HttpServerFactory",
119- "@type": "BaseHttpServerFactory",
120- "handler": { "@id": "urn:solid-server:default:HttpHandler" },
121- "options_showStackTrace": { "@id": "urn:solid-server:default:variable:showStackTrace" },
122- "options_https": true,
123- "options_key": {
124- "@id": "urn:solid-server:custom:variable:httpsKey",
125- "@type": "Variable"
126- },
127- "options_cert": {
128- "@id": "urn:solid-server:custom:variable:httpsCert",
129- "@type": "Variable"
130- }
131- },
132- "webSocketHandler": {
133- "@type": "UnsecureWebSocketsProtocol",
134- "source": { "@id": "urn:solid-server:default:ResourceStore" }
135- }
136- }
13770 ]
13871}
13972EOF
14881 docker network create testnet
14982 docker run -d --name=server --network=testnet --env NODE_TLS_REJECT_UNAUTHORIZED=0 \
15083 -v " $( pwd) " /config:/config \
151- -v " $( pwd) " /certs:/certs -p 443:443 -it solidproject/community-server:4 \
84+ -v " $( pwd) " /certs:/certs \
85+ -p 443:443 -it solidproject/community-server:5 \
15286 -c /config/css-config.json \
15387 --httpsKey=/certs/server.key --httpsCert=/certs/server.cert \
15488 --port=443 --baseUrl=https://server/
0 commit comments