14 lines
319 B
JavaScript
Executable File
14 lines
319 B
JavaScript
Executable File
function setupProxy({ tls }) {
|
|
const conf = [
|
|
{
|
|
context: ['/api', '/services', '/management', '/v3/api-docs', '/h2-console', '/auth', '/health'],
|
|
target: `http${tls ? 's' : ''}://localhost:8080`,
|
|
secure: false,
|
|
changeOrigin: tls,
|
|
},
|
|
];
|
|
return conf;
|
|
}
|
|
|
|
module.exports = setupProxy;
|