information-system-gui/webpack/proxy.conf.js

14 lines
340 B
JavaScript
Raw Normal View History

2023-06-29 16:03:38 +02:00
function setupProxy({ tls }) {
const conf = [
{
context: ['/api', '/services', '/management', '/v3/api-docs', '/h2-console', '/oauth2', '/login', '/auth', '/health'],
target: `http${tls ? 's' : ''}://localhost:8080`,
secure: false,
changeOrigin: tls,
},
];
return conf;
}
module.exports = setupProxy;