changes for easier kits integration
This commit is contained in:
parent
08caa4cefc
commit
1086b69595
@ -1,3 +1,18 @@
|
|||||||
*
|
.dockerignore
|
||||||
!package*.json
|
.editorconfig
|
||||||
!dist
|
.env*
|
||||||
|
.git
|
||||||
|
.github
|
||||||
|
.gitignore
|
||||||
|
.prettier*
|
||||||
|
.vscode
|
||||||
|
ca/*.crt
|
||||||
|
ca/*.key
|
||||||
|
ca/*.pem
|
||||||
|
ca/*.req
|
||||||
|
docker-compose*
|
||||||
|
Dockerfile*
|
||||||
|
LICENSE
|
||||||
|
dist*
|
||||||
|
node_modules*
|
||||||
|
README.md
|
10
Dockerfile
10
Dockerfile
@ -1,13 +1,15 @@
|
|||||||
FROM node:16-alpine
|
FROM node:16-alpine
|
||||||
|
|
||||||
WORKDIR /app
|
RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
|
||||||
|
WORKDIR /home/node/app
|
||||||
|
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm ci --prod
|
|
||||||
|
|
||||||
COPY ./dist ./dist
|
|
||||||
|
|
||||||
USER node
|
USER node
|
||||||
|
RUN npm ci
|
||||||
|
|
||||||
|
COPY --chown=node:node . ./
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ services:
|
|||||||
BACKEND_V2_POST_URL: http://localhost:8080/api/v2/scenes/
|
BACKEND_V2_POST_URL: http://localhost:8080/api/v2/scenes/
|
||||||
LIBRARY_URL: https://libraries.excalidraw.com
|
LIBRARY_URL: https://libraries.excalidraw.com
|
||||||
LIBRARY_BACKEND: https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries
|
LIBRARY_BACKEND: https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries
|
||||||
SOCKET_SERVER_URL: http://localhost:5000/
|
SOCKET_SERVER_URL: http://localhost:5001/
|
||||||
STORAGE_BACKEND: "http"
|
STORAGE_BACKEND: "http"
|
||||||
HTTP_STORAGE_BACKEND_URL: "http://localhost:8080/api/v2"
|
HTTP_STORAGE_BACKEND_URL: "http://localhost:8080/api/v2"
|
||||||
|
|
||||||
@ -26,7 +26,7 @@ services:
|
|||||||
excalidraw-room:
|
excalidraw-room:
|
||||||
image: excalidraw/excalidraw-room
|
image: excalidraw/excalidraw-room
|
||||||
ports:
|
ports:
|
||||||
- "5000:80"
|
- "5001:80"
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis
|
image: redis
|
||||||
|
@ -38,6 +38,8 @@ export class RoomsController {
|
|||||||
|
|
||||||
@Put(':id')
|
@Put(':id')
|
||||||
async create(@Param() params, @Body() payload: Buffer) {
|
async create(@Param() params, @Body() payload: Buffer) {
|
||||||
|
console.log(payload)
|
||||||
|
console.log(params)
|
||||||
const id = params.id;
|
const id = params.id;
|
||||||
await this.storageService.set(id, payload, this.namespace);
|
await this.storageService.set(id, payload, this.namespace);
|
||||||
this.logger.debug(`Created room ${id}`);
|
this.logger.debug(`Created room ${id}`);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user