mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
75 lines
3.0 KiB
JSON
75 lines
3.0 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": "/.internal/locks/"
|
|
},
|
|
{
|
|
"comment": "Storage used by the IDP adapter.",
|
|
"@id": "urn:solid-server:default:IdpAdapterStorage",
|
|
"@type": "JsonResourceStorage",
|
|
"source": { "@id": "urn:solid-server:default:ResourceStore" },
|
|
"baseUrl": { "@id": "urn:solid-server:default:variable:baseUrl" },
|
|
"container": "/.internal/idp/adapter/"
|
|
},
|
|
{
|
|
"comment": "Storage used for the IDP keys.",
|
|
"@id": "urn:solid-server:default:IdpKeyStorage",
|
|
"@type": "JsonResourceStorage",
|
|
"source": { "@id": "urn:solid-server:default:ResourceStore" },
|
|
"baseUrl": { "@id": "urn:solid-server:default:variable:baseUrl" },
|
|
"container": "/.internal/idp/keys/"
|
|
},
|
|
{
|
|
"comment": "Storage used for IDP ownership tokens.",
|
|
"@id": "urn:solid-server:default:IdpTokenStorage",
|
|
"@type": "JsonResourceStorage",
|
|
"source": { "@id": "urn:solid-server:default:ResourceStore" },
|
|
"baseUrl": { "@id": "urn:solid-server:default:variable:baseUrl" },
|
|
"container": "/.internal/idp/tokens/"
|
|
},
|
|
{
|
|
"comment": "Storage used for account management.",
|
|
"@id": "urn:solid-server:default:AccountStorage",
|
|
"@type": "JsonResourceStorage",
|
|
"source": { "@id": "urn:solid-server:default:ResourceStore" },
|
|
"baseUrl": { "@id": "urn:solid-server:default:variable:baseUrl" },
|
|
"container": "/.internal/accounts/"
|
|
},
|
|
{
|
|
"comment": "Block external access to the storage containers to avoid exposing internal data.",
|
|
"@id": "urn:solid-server:default:PathBasedAuthorizer",
|
|
"PathBasedAuthorizer:_paths": [
|
|
{
|
|
"PathBasedAuthorizer:_paths_key": "^/.internal(/.*)?$",
|
|
"PathBasedAuthorizer:_paths_value": { "@type": "DenyAllAuthorizer" }
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"comment": "Marks the /.internal/ storage container as an auxiliary resource, thereby hiding it from container representations.",
|
|
"@id": "urn:solid-server:default:AuxiliaryStrategy",
|
|
"RoutingAuxiliaryStrategy:_sources": [
|
|
{
|
|
"@type": "ComposedAuxiliaryStrategy",
|
|
"identifierStrategy": {
|
|
"@type": "SuffixAuxiliaryIdentifierStrategy",
|
|
"suffix": "/.internal/"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|