c3lf-system-3/web/vue.config.js
2024-01-07 17:50:12 +01:00

39 lines
No EOL
1 KiB
JavaScript

// vue.config.js
const basicAuth = require('express-basic-auth');
module.exports = {
devServer: {
headers: {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Headers": "*",
"Access-Control-Allow-Methods": "*"
},
setupMiddlewares: (middlewares, devServer) => {
devServer.app.use(basicAuth({
users: {
'c3lf': 'findetalles'
},
challenge: true
}));
return middlewares;
},
proxy: {
'/api/2': {
target: 'https://sys3.c3lf.de/',
changeOrigin: true,
},
'/api/1': {
target: 'https://sys3.c3lf.de/',
changeOrigin: true,
},
'/ws/2': {
target: 'https://sys3.c3lf.de/',
changeOrigin: true,
ws: true,
logLevel: 'debug',
xfwd: false,
},
}
}
}