Commit e45fe9d0 authored by Ben Hayward's avatar Ben Hayward

Unneeded additon

1 merge request!768Group explicit overlay #2402
Pipeline #115652872 failed with stages
in 11 minutes and 52 seconds
const engineSecure = Boolean(parseInt(process.env['ENGINE_SECURE']) || 0);
const engineHost = process.env['ENGINE_HOST'] || 'localhost';
const enginePort = process.env['ENGINE_PORT'] || (engineSecure ? 443 : 80);
const PROXY_CONFIG = [
{
context: [
'/api',
'/fs',
'/icon',
'/carousel',
],
target: {
protocol: engineSecure ? 'https:' : 'http:',
host: engineHost,
port: enginePort,
},
secure: false,
changeOrigin: true,
withCredentials: true,
logLevel: process.env['PROXY_LOG_LEVEL'] || 'warn',
}
];
module.exports = PROXY_CONFIG;
Please register or to comment