-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add new webid package * chore: separate test and local data * fix: add id proxy webid documents * chore: update ports for webid and proxy * chore: update ci.yml * chore: update Dockerfile * chore: update proxy config * chore: update dockerfile * chore: rename local, test -> development, production
- Loading branch information
Showing
22 changed files
with
4,528 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# compiled output | ||
/dist | ||
/node_modules | ||
!/node_modules/community-server | ||
|
||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
|
||
# OS | ||
.DS_Store | ||
|
||
# Tests | ||
/coverage | ||
/.nyc_output | ||
|
||
# IDEs and editors | ||
/.idea | ||
.project | ||
.classpath | ||
.c9/ | ||
*.launch | ||
.settings/ | ||
*.sublime-workspace | ||
|
||
# IDE - VSCode | ||
.vscode/* | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
|
||
yarn-error.log | ||
yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FROM node:14-alpine | ||
|
||
LABEL org.opencontainers.image.source https://github.com/netwerk-digitaal-erfgoed/solid-crs | ||
|
||
# Install git as it is needed to pull from solid/community-server | ||
RUN apk update && apk upgrade && \ | ||
apk add --no-cache bash git openssh | ||
|
||
ENV BASE_URL=http://localhost | ||
ENV PORT=80 | ||
ENV CONFIG=config/file.json | ||
ENV ENVIRONMENT=production | ||
|
||
# Create app directory | ||
RUN mkdir -p /community-server | ||
WORKDIR /community-server | ||
|
||
# Install app dependencies | ||
ARG NPM_TOKEN | ||
COPY package.json /community-server/ | ||
RUN npm install --unsafe-perm | ||
|
||
# Bundle app source | ||
COPY . /community-server | ||
|
||
# Copy initial data | ||
COPY ./config/ /config | ||
|
||
# Expose ports. | ||
EXPOSE 80 | ||
CMD node ./node_modules/.bin/community-solid-server -b ${BASE_URL} -p ${PORT} -c ${CONFIG} --rootFilePath /tmp/css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^2.0.0/components/context.jsonld", | ||
"import": [ | ||
"files-scs:config/app/main/default.json", | ||
"files-scs:config/app/init/default.json", | ||
"files-scs:config/app/setup/required.json", | ||
"files-scs:config/http/handler/default.json", | ||
"files-scs:config/http/middleware/websockets.json", | ||
"files-scs:config/http/server-factory/websockets.json", | ||
"files-scs:config/http/static/default.json", | ||
"files-scs:config/identity/access/public.json", | ||
"files-scs:config/identity/email/default.json", | ||
"files-scs:config/identity/handler/default.json", | ||
"files-scs:config/identity/ownership/token.json", | ||
"files-scs:config/identity/pod/static.json", | ||
"files-scs:config/identity/registration/disabled.json", | ||
"files-scs:config/ldp/authentication/dpop-bearer.json", | ||
"files-scs:config/ldp/authorization/webacl.json", | ||
"files-scs:config/ldp/handler/default.json", | ||
"files-scs:config/ldp/metadata-parser/default.json", | ||
"files-scs:config/ldp/metadata-writer/default.json", | ||
"files-scs:config/ldp/modes/default.json", | ||
"files-scs:config/storage/backend/file.json", | ||
"files-scs:config/storage/key-value/resource-store.json", | ||
"files-scs:config/storage/middleware/default.json", | ||
"files-scs:config/util/auxiliary/acl.json", | ||
"files-scs:config/util/identifiers/suffix.json", | ||
"files-scs:config/util/index/default.json", | ||
"files-scs:config/util/logging/winston.json", | ||
"files-scs:config/util/representation-conversion/default.json", | ||
"files-scs:config/util/resource-locker/memory.json", | ||
"files-scs:config/util/variables/default.json" | ||
], | ||
"@graph": [ | ||
{ | ||
"comment": "A single-pod server that stores its resources on disk, with account registration disabled." | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@prefix acl: <http://www.w3.org/ns/auth/acl#>. | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/>. | ||
|
||
<#authorization> | ||
a acl:Authorization; | ||
acl:agentClass foaf:Agent; | ||
acl:mode acl:Read; | ||
acl:mode acl:Write; | ||
acl:mode acl:Append; | ||
acl:mode acl:Delete; | ||
acl:mode acl:Control; | ||
acl:accessTo <./>; | ||
acl:default <./>. | ||
|
||
<#minter-append-webids> | ||
a acl:Authorization; | ||
acl:agent <http://localhost:3007/dgt-id-proxy/card#me>; | ||
acl:accessTo <./>; | ||
acl:mode | ||
acl:Read, acl:Append. | ||
|
||
<#minter-control-webids> | ||
a acl:Authorization; | ||
acl:agent <http://localhost:3007/dgt-id-proxy/card#me>; | ||
acl:default <./>; | ||
acl:mode | ||
acl:Read, acl:Write, acl:Control. |
1 change: 1 addition & 0 deletions
1
packages/solid-crs-webid/data/development/.internal/setup/c2V0dXBDb21wbGV0ZWQtMi4w$.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<http://localhost:3007/> a <http://www.w3.org/ns/pim/space#Storage>. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@prefix acl: <http://www.w3.org/ns/auth/acl#>. | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/>. | ||
|
||
<#public> | ||
a acl:Authorization; | ||
acl:agentClass foaf:Agent; | ||
acl:accessTo <./>; | ||
acl:default <./>; | ||
acl:mode acl:Read. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<http://localhost:3007/dgt-id-proxy/> a <http://www.w3.org/ns/pim/space#Storage>. |
13 changes: 13 additions & 0 deletions
13
packages/solid-crs-webid/data/development/dgt-id-proxy/card$.ttl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/>. | ||
@prefix solid: <http://www.w3.org/ns/solid/terms#>. | ||
|
||
<> | ||
a foaf:PersonalProfileDocument; | ||
foaf:maker <http://localhost:3007/dgt-id-proxy/card#me>; | ||
foaf:primaryTopic <http://localhost:3007/dgt-id-proxy/card#me>. | ||
|
||
<http://localhost:3007/dgt-id-proxy/card#me> | ||
a foaf:Person; | ||
foaf:name "dgt-id-proxy"; | ||
solid:oidcIssuer <http://localhost:3006/> ; | ||
solid:oidcIssuerRegistrationToken "" . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@prefix acl: <http://www.w3.org/ns/auth/acl#>. | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/>. | ||
|
||
<#authorization> | ||
a acl:Authorization; | ||
acl:agentClass foaf:Agent; | ||
acl:mode acl:Read; | ||
acl:mode acl:Write; | ||
acl:mode acl:Append; | ||
acl:mode acl:Delete; | ||
acl:mode acl:Control; | ||
acl:accessTo <./>; | ||
acl:default <./>. | ||
|
||
<#minter-append-webids> | ||
a acl:Authorization; | ||
acl:agent <https://webid.netwerkdigitaalerfgoed.nl/dgt-id-proxy/card#me>; | ||
acl:accessTo <./>; | ||
acl:mode | ||
acl:Read, acl:Append. | ||
|
||
<#minter-control-webids> | ||
a acl:Authorization; | ||
acl:agent <https://webid.netwerkdigitaalerfgoed.nl/dgt-id-proxy/card#me>; | ||
acl:default <./>; | ||
acl:mode | ||
acl:Read, acl:Write, acl:Control. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<https://webid.netwerkdigitaalerfgoed.nl/> a <http://www.w3.org/ns/pim/space#Storage>. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@prefix acl: <http://www.w3.org/ns/auth/acl#>. | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/>. | ||
|
||
<#public> | ||
a acl:Authorization; | ||
acl:agentClass foaf:Agent; | ||
acl:accessTo <./>; | ||
acl:default <./>; | ||
acl:mode acl:Read. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<https://webid.netwerkdigitaalerfgoed.nl/dgt-id-proxy/> a <http://www.w3.org/ns/pim/space#Storage>. |
13 changes: 13 additions & 0 deletions
13
packages/solid-crs-webid/data/production/dgt-id-proxy/card$.ttl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/>. | ||
@prefix solid: <http://www.w3.org/ns/solid/terms#>. | ||
|
||
<> | ||
a foaf:PersonalProfileDocument; | ||
foaf:maker <https://webid.netwerkdigitaalerfgoed.nl/dgt-id-proxy/card#me>; | ||
foaf:primaryTopic <https://webid.netwerkdigitaalerfgoed.nl/dgt-id-proxy/card#me>. | ||
|
||
<https://webid.netwerkdigitaalerfgoed.nl/dgt-id-proxy/card#me> | ||
a foaf:Person; | ||
foaf:name "dgt-id-proxy"; | ||
solid:oidcIssuer <https://auth.netwerkdigitaalerfgoed.nl/> ; | ||
solid:oidcIssuerRegistrationToken "" . |
Oops, something went wrong.