14 lines
340 B
JavaScript
14 lines
340 B
JavaScript
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;
|