Skip to content

Commit

Permalink
Merge branch 'develop' into feat/add-webid-server
Browse files Browse the repository at this point in the history
  • Loading branch information
lem-onade authored Dec 17, 2021
2 parents 308e569 + 565f7a7 commit f841e60
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 1 deletion.
36 changes: 36 additions & 0 deletions packages/solid-crs-id-proxy/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/solid-crs-id-proxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"scripts": {
"start": "dgt-id-proxy",
"start:watch": "npm run start -- -u http://localhost:3006/ -U https://nde.eu.auth0.com/ -m . -c config/local-config.json -o assets/openid-configuration.json -j assets/jwks.json",
"build": "shx rm -rf assets && shx mkdir assets && npm run generate:oidc && npm run generate:keys",
"lint:staged": "lint-staged",
"generate:oidc": "node scripts/generate-openid-configuration.js https://nde.eu.auth0.com/ http://localhost:3006/ assets/openid-configuration.json local",
"generate:keys": "node scripts/generate-keys.js assets/jwks.json"
Expand Down Expand Up @@ -40,7 +41,7 @@
"jest": "^26.6.3",
"jest-coverage-thresholds-bumper": "0.0.4",
"lint-staged": "^10.5.4",
"rimraf": "^3.0.2",
"shx": "^0.3.3",
"ts-jest": "^26.5.4",
"ts-node": "^9.1.1",
"typescript": "^4.2.3"
Expand Down
2 changes: 2 additions & 0 deletions packages/solid-crs-manage/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM node:14-alpine AS build
ARG NPM_TOKEN
WORKDIR /usr/src/app
COPY nginx.conf ./
COPY package*.json ./
COPY .npmrc ./
RUN echo "//npm.pkg.github.com/:_authToken=$NPM_TOKEN" >> .npmrc && \
Expand All @@ -12,5 +13,6 @@ RUN npm run build
FROM nginx:stable-alpine
LABEL org.opencontainers.image.source=https://github.com/netwerk-digitaal-erfgoed/solid-crs
COPY --from=build /usr/src/app/dist /usr/share/nginx/html
COPY --from=build /usr/src/app/nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
12 changes: 12 additions & 0 deletions packages/solid-crs-manage/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
server {
listen 80;
listen [::]:80;
server_name localhost;


location / {
root /usr/share/nginx/html;
try_files $uri /index.html;
}

}

0 comments on commit f841e60

Please sign in to comment.