WIP: Add dev environment using docker

This commit is contained in:
lagertonne 2024-11-01 20:42:13 +01:00
parent b9cfdf5456
commit fdc1460481
4 changed files with 70 additions and 20 deletions

6
web/Dockerfile.dev Normal file
View file

@ -0,0 +1,6 @@
FROM docker.io/node:22
RUN mkdir /web
WORKDIR /web
COPY package.json /web/
RUN npm install

View file

@ -7,25 +7,25 @@ module.exports = {
"Access-Control-Allow-Headers": "*",
"Access-Control-Allow-Methods": "*"
},
proxy: {
'^/media/2': {
target: 'https://staging.c3lf.de/',
changeOrigin: true
},
'^/api/2': {
target: 'https://staging.c3lf.de/',
changeOrigin: true,
},
'^/api/1': {
target: 'https://staging.c3lf.de/',
changeOrigin: true,
},
'^/ws/2': {
target: 'http://127.0.0.1:8082/',
//changeOrigin: true,
ws: true,
logLevel: 'debug',
},
}
//proxy: {
// '^/media/2': {
// target: 'https://staging.c3lf.de/',
// changeOrigin: true
// },
// '^/api/2': {
// target: 'https://staging.c3lf.de/',
// changeOrigin: true,
// },
// '^/api/1': {
// target: 'https://staging.c3lf.de/',
// changeOrigin: true,
// },
// '^/ws/2': {
// target: 'http://127.0.0.1:8082/',
// //changeOrigin: true,
// ws: true,
// logLevel: 'debug',
// },
//}
}
}