mirror of
https://github.com/valitydev/control-center.git
synced 2024-11-06 02:25:17 +00:00
22 lines
473 B
JavaScript
22 lines
473 B
JavaScript
require('dotenv').config();
|
|
|
|
const THRIFT_PROXY_CONFIG = {
|
|
context: [
|
|
'/v1',
|
|
'/v3',
|
|
'/stat',
|
|
'/fistful',
|
|
'/file_storage',
|
|
'/deanonimus',
|
|
'/payout/management',
|
|
],
|
|
target: process.env.PROXY_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];
|