mirror of
https://github.com/valitydev/control-center.git
synced 2024-11-06 02:25:17 +00:00
12 lines
339 B
JavaScript
12 lines
339 B
JavaScript
|
const THRIFT_PROXY_CONFIG = {
|
||
|
context: ['/v1', '/stat', '/fistful', '/papi', '/file_storage', '/deanonimus'],
|
||
|
target: '',
|
||
|
secure: false,
|
||
|
logLevel: 'debug',
|
||
|
changeOrigin: true,
|
||
|
};
|
||
|
|
||
|
if (!THRIFT_PROXY_CONFIG.target) throw new Error('proxy.conf.js - set the thrift proxy target!');
|
||
|
|
||
|
module.exports = [THRIFT_PROXY_CONFIG];
|