control-center/proxy.conf.js

12 lines
339 B
JavaScript
Raw Permalink Normal View History

2022-01-11 17:07:27 +00:00
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];