mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
42 lines
1.7 KiB
JSON
42 lines
1.7 KiB
JSON
{
|
|
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^1.0.0/components/context.jsonld",
|
|
"@graph": [
|
|
{
|
|
"comment": "These storage solutions use the specified container in the ResourceStore to store their data."
|
|
},
|
|
{
|
|
"comment": [
|
|
"This is the internal storage for the locker, which maintains what resources are in use.",
|
|
"It writes directly to a low-level store, because higher-level storage typically already uses the locker and would thus cause a loop."
|
|
],
|
|
"@id": "urn:solid-server:default:LockStorage",
|
|
"@type": "JsonResourceStorage",
|
|
"source": { "@id": "urn:solid-server:default:ResourceStore_Backend" },
|
|
"baseUrl": { "@id": "urn:solid-server:default:variable:baseUrl" },
|
|
"container": "/locks/"
|
|
},
|
|
{
|
|
"comment": "Storage used by the IDP component.",
|
|
"@id": "urn:solid-server:default:IdpStorage",
|
|
"@type": "JsonResourceStorage",
|
|
"source": { "@id": "urn:solid-server:default:ResourceStore" },
|
|
"baseUrl": { "@id": "urn:solid-server:default:variable:baseUrl" },
|
|
"container": "/idp/data/"
|
|
},
|
|
{
|
|
"comment": "Block external access to the storage containers to avoid exposing internal data.",
|
|
"@id": "urn:solid-server:default:PathBasedAuthorizer",
|
|
"PathBasedAuthorizer:_paths": [
|
|
{
|
|
"PathBasedAuthorizer:_paths_key": "^/locks(/.*)?$",
|
|
"PathBasedAuthorizer:_paths_value": { "@type": "DenyAllAuthorizer" }
|
|
},
|
|
{
|
|
"PathBasedAuthorizer:_paths_key": "^/idp/data(/.*)?$",
|
|
"PathBasedAuthorizer:_paths_value": { "@type": "DenyAllAuthorizer" }
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|