Skip to content

Commit 3858f15

Browse files
Clean standard config & sample data
1 parent 1936a75 commit 3858f15

File tree

9 files changed

+86
-64
lines changed

9 files changed

+86
-64
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules
2+
.internal

config/config.json

Lines changed: 62 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
{
22
"@context": [
3-
"https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^8.0.0/components/context.jsonld"
3+
"https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^8.0.0/components/context.jsonld",
4+
"https://linkedsoftwaredependencies.org/bundles/npm/asynchronous-handlers/^1.0.0/components/context.jsonld"
45
],
56
"import": [
67
"css:config/app/init/default.json",
78
"css:config/app/main/default.json",
89
"css:config/app/variables/default.json",
9-
"css:config/http/handler/default.json",
10+
11+
"css:config/http/handler/handlers/storage-description.json",
12+
1013
"css:config/http/middleware/default.json",
1114
"css:config/http/notifications/all.json",
1215
"css:config/http/server-factory/http.json",
@@ -31,13 +34,38 @@
3134
"css:config/util/identifiers/suffix.json",
3235
"css:config/util/index/default.json",
3336
"css:config/util/logging/winston.json",
34-
"css:config/util/representation-conversion/default.json",
3537
"css:config/util/resource-locker/file.json",
38+
39+
"css:config/util/representation-conversion/converters/content-type-replacer.json",
40+
"css:config/util/representation-conversion/converters/dynamic-json-template.json",
41+
"css:config/util/representation-conversion/converters/errors.json",
42+
"css:config/util/representation-conversion/converters/form-to-json.json",
43+
"css:config/util/representation-conversion/converters/markdown.json",
44+
"css:config/util/representation-conversion/converters/quad-to-rdf.json",
45+
"css:config/util/representation-conversion/converters/rdf-to-quad.json",
46+
3647
"css:config/util/variables/default.json"
3748
],
3849
"@graph": [
3950
{
40-
"@id": "urn:css-vercel-blob-data-accessor:config:util:resource-locker:file:override_expiration",
51+
"comment": "No IDP, pod provisioning or static assets (static assets is not standard).",
52+
"@id": "urn:solid-server:default:HttpHandler",
53+
"@type": "SequenceHandler",
54+
"handlers": [
55+
{ "@id": "urn:solid-server:default:Middleware" },
56+
{
57+
"@id": "urn:solid-server:default:BaseHttpHandler",
58+
"@type": "StatusWaterfallHandler",
59+
"handlers": [
60+
{ "@id": "urn:solid-server:default:StorageDescriptionHandler" },
61+
{ "@id": "urn:solid-server:default:LdpHandler" }
62+
]
63+
}
64+
]
65+
},
66+
{
67+
"comment": "Long time for resource lock expiry to accomodate network delays.",
68+
"@id": "urn:css:config:util:resource-locker:file:override_expiration",
4169
"@type": "Override",
4270
"overrideInstance": { "@id": "urn:solid-server:default:ResourceLocker" },
4371
"overrideParameters": {
@@ -46,13 +74,42 @@
4674
}
4775
},
4876
{
49-
"@id": "urn:css-vercel-blob-data-accessor:config:storage:middleware:override_resource_store_index",
77+
"comment": "Don't serve index.html instead of containers (as it is not standard).",
78+
"@id": "urn:css:config:storage:middleware:override_resource_store_index",
5079
"@type": "Override",
5180
"overrideInstance": { "@id": "urn:solid-server:default:ResourceStore_Index" },
5281
"overrideParameters": {
5382
"@type": "PassthroughStore",
5483
"source": { "@id": "urn:solid-server:default:ResourceStore_Locking" }
5584
}
85+
},
86+
{
87+
"comment": "Only use minimum set of standard content type converters (remove html/md templating as it is not standard).",
88+
"@id": "urn:solid-server:default:RepresentationConverter",
89+
"@type": "StatusWaterfallHandler",
90+
"handlers": [
91+
{ "@id": "urn:solid-server:default:DynamicJsonToTemplateConverter" },
92+
{
93+
"comment": "Automatically finds a path through a set of converters from one type to another.",
94+
"@id": "urn:solid-server:default:ChainedConverter",
95+
"@type": "ChainedConverter",
96+
"converters": [
97+
{ "@id": "urn:solid-server:default:ContentTypeReplacer" },
98+
{ "@id": "urn:solid-server:default:RdfToQuadConverter" },
99+
{ "@id": "urn:solid-server:default:QuadToRdfConverter" },
100+
{ "@id": "urn:solid-server:default:ErrorToJsonConverter" },
101+
{ "@id": "urn:solid-server:default:ErrorToQuadConverter" }
102+
]
103+
}
104+
]
105+
},
106+
{
107+
"comment": "No default UI converter (as it is not standard), go to representation converters instead.",
108+
"@id": "urn:solid-server:default:UiEnabledConverter",
109+
"@type": "StatusWaterfallHandler",
110+
"handlers": [
111+
{ "@id": "urn:solid-server:default:RepresentationConverter" }
112+
]
56113
}
57114
]
58115
}

config/file.json

Lines changed: 0 additions & 41 deletions
This file was deleted.

data/.acr

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
@prefix acl: <http://www.w3.org/ns/auth/acl#>.
2+
@prefix acp: <http://www.w3.org/ns/solid/acp#>.
3+
4+
# Give all agents Read, Write, and Control permissions on everything
5+
<#card>
6+
a acp:AccessControlResource;
7+
acp:resource <./>;
8+
acp:accessControl <#publicAccess>;
9+
acp:memberAccessControl <#publicAccess> .
10+
11+
<#publicAccess>
12+
a acp:AccessControl;
13+
acp:apply [
14+
a acp:Policy;
15+
acp:allow acl:Read, acl:Write, acl:Control;
16+
acp:anyOf [
17+
a acp:Matcher;
18+
acp:agent acp:PublicAgent
19+
]
20+
].

data/favicon.ico

14.7 KB
Binary file not shown.

data/favicon.ico.acr

Lines changed: 0 additions & 17 deletions
This file was deleted.

data/x/y$.ttl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<x> <y> <z> .

data/z$.ttl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<x> <y> <z> .

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"type": "module",
77
"main": "./index.js",
88
"scripts": {
9-
"start": "node . --config ./config/file.json --baseUrl \"https://$WEBSITE_HOSTNAME\" --rootFilePath /csstest --mainModulePath . --loggingLevel info --port $PORT",
9+
"start": "node . --config ./config/config.json --baseUrl \"https://$WEBSITE_HOSTNAME\" --rootFilePath /csstest --mainModulePath . --loggingLevel info --port $PORT",
1010
"start:dev": "node . --config ./config/config.json --rootFilePath data/ --mainModulePath . --loggingLevel info --port 8080"
1111
},
1212
"files": [

0 commit comments

Comments
 (0)