mirror of
https://github.com/valitydev/control-center.git
synced 2024-11-06 02:25:17 +00:00
28 lines
602 B
JavaScript
28 lines
602 B
JavaScript
require('dotenv').config();
|
|
|
|
const { PROXY_TARGET } = process.env;
|
|
const REQUIRED_ENV = [PROXY_TARGET];
|
|
|
|
if (REQUIRED_ENV.findIndex((e) => !e) !== -1) {
|
|
throw new Error('[proxy.conf.js] Set required environment variables!');
|
|
}
|
|
|
|
module.exports = [
|
|
{
|
|
context: [
|
|
'/v1',
|
|
'/v3',
|
|
'/stat',
|
|
'/fistful',
|
|
'/file_storage',
|
|
'/deanonimus',
|
|
'/payout/management',
|
|
'/wachter',
|
|
],
|
|
target: PROXY_TARGET,
|
|
secure: false,
|
|
logLevel: 'debug',
|
|
changeOrigin: true,
|
|
},
|
|
];
|