control-center/proxy.conf.js
2022-04-25 11:20:58 +03:00

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];