|
7 | 7 | "css:config/app/variables/default.json",
|
8 | 8 | "css:config/http/handler/default.json",
|
9 | 9 | "css:config/http/middleware/websockets.json",
|
10 |
| - |
| 10 | + "css:config/http/server-factory/https-websockets.json", |
11 | 11 | "css:config/http/static/default.json",
|
12 | 12 | "css:config/identity/access/public.json",
|
13 | 13 | "css:config/identity/email/default.json",
|
|
34 | 34 | ],
|
35 | 35 | "@graph": [
|
36 | 36 | {
|
37 |
| - "comment": [ |
38 |
| - "Adds CLI options --httpsKey and --httpsCert and uses those to start an HTTPS server.", |
39 |
| - "The http/server-factory import above has been omitted since that feature is set below." |
40 |
| - ] |
41 |
| - }, |
42 |
| - { |
43 |
| - "@id": "urn:solid-server-app-setup:default:CliExtractor", |
44 |
| - "@type": "YargsCliExtractor", |
45 |
| - "parameters": [ |
46 |
| - { |
47 |
| - "@type": "YargsParameter", |
48 |
| - "name": "httpsKey", |
49 |
| - "options": { |
50 |
| - "demandOption": true, |
51 |
| - "requiresArg": true, |
52 |
| - "type": "string", |
53 |
| - "describe": "File path to the HTTPS key." |
54 |
| - } |
55 |
| - }, |
56 |
| - { |
57 |
| - "@type": "YargsParameter", |
58 |
| - "name": "httpsCert", |
59 |
| - "options": { |
60 |
| - "demandOption": true, |
61 |
| - "requiresArg": true, |
62 |
| - "type": "string", |
63 |
| - "describe": "File path to the HTTPS certificate." |
64 |
| - } |
65 |
| - } |
66 |
| - ] |
67 |
| - }, |
68 |
| - { |
69 |
| - "comment": "Adds resolvers to assign the CLI values to the Components.js variables.", |
70 |
| - "@id": "urn:solid-server-app-setup:default:ShorthandResolver", |
71 |
| - "@type": "CombinedShorthandResolver", |
72 |
| - "resolvers": [ |
73 |
| - { |
74 |
| - "CombinedShorthandResolver:_resolvers_key": "urn:solid-server:custom:variable:httpsKey", |
75 |
| - "CombinedShorthandResolver:_resolvers_value": { |
76 |
| - "@type": "KeyExtractor", |
77 |
| - "key": "httpsKey" |
78 |
| - } |
79 |
| - }, |
80 |
| - { |
81 |
| - "CombinedShorthandResolver:_resolvers_key": "urn:solid-server:custom:variable:httpsCert", |
82 |
| - "CombinedShorthandResolver:_resolvers_value": { |
83 |
| - "@type": "KeyExtractor", |
84 |
| - "key": "httpsCert" |
85 |
| - } |
86 |
| - } |
87 |
| - ] |
88 |
| - }, |
89 |
| - { |
90 |
| - "comment": [ |
91 |
| - "Creates an HTTPS server with the settings provided via the command line.", |
92 |
| - "Replaces the example import from config/http/server-factory.https-example.json." |
93 |
| - ], |
94 |
| - "@id": "urn:solid-server:default:ServerFactory", |
95 |
| - "@type": "WebSocketServerFactory", |
96 |
| - "baseServerFactory": { |
97 |
| - "@id": "urn:solid-server:default:HttpServerFactory", |
98 |
| - "@type": "BaseHttpServerFactory", |
99 |
| - "handler": { "@id": "urn:solid-server:default:HttpHandler" }, |
100 |
| - "options_showStackTrace": { "@id": "urn:solid-server:default:variable:showStackTrace" }, |
101 |
| - "options_https": true, |
102 |
| - "options_key": { |
103 |
| - "@id": "urn:solid-server:custom:variable:httpsKey", |
104 |
| - "@type": "Variable" |
105 |
| - }, |
106 |
| - "options_cert": { |
107 |
| - "@id": "urn:solid-server:custom:variable:httpsCert", |
108 |
| - "@type": "Variable" |
109 |
| - } |
110 |
| - }, |
111 |
| - "webSocketHandler": { |
112 |
| - "@type": "UnsecureWebSocketsProtocol", |
113 |
| - "source": { "@id": "urn:solid-server:default:ResourceStore" } |
114 |
| - } |
| 37 | + "comment": "Adds CLI options --httpsKey and --httpsCert and uses those to start an HTTPS server." |
115 | 38 | }
|
116 | 39 | ]
|
117 | 40 | }
|
0 commit comments