mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
feat: Integrate setup behaviour
This adds options for enabling setup to the config folder. All default configs with permanent storage (file/sparql) are configured to require setup at server start. Memory-based configs merely have it as an option.
This commit is contained in:
24
config/app/setup/optional.json
Normal file
24
config/app/setup/optional.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^1.0.0/components/context.jsonld",
|
||||
"import": [
|
||||
"files-scs:config/app/setup/handlers/setup.json"
|
||||
],
|
||||
"@graph": [
|
||||
{
|
||||
"comment": "Combines both the redirect and the setup.",
|
||||
"@id": "urn:solid-server:default:SetupHandler",
|
||||
"@type": "ConditionalHandler",
|
||||
"storageKey": "setupCompleted-1.0",
|
||||
"storageValue": true,
|
||||
"storage": { "@id": "urn:solid-server:default:SetupStorage" },
|
||||
"source": {
|
||||
"@type": "RouterHandler",
|
||||
"args_baseUrl": { "@id": "urn:solid-server:default:variable:baseUrl" },
|
||||
"args_targetExtractor": { "@id": "urn:solid-server:default:TargetExtractor" },
|
||||
"args_allowedMethods": [ "*" ],
|
||||
"args_allowedPathNames": [ "/setup" ],
|
||||
"args_handler": { "@id": "urn:solid-server:default:SetupHttpHandler" }
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user