| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- // 全局配置
- const environment = 'production';
- // 全局差异化配置,无需配置请留空
- const faasEnvironment = '';
- const graphqlEnvironment = '';
- // 基础配置
- const localIP = 'http://localhost';
- const serverIP = 'http://123.206.193.98';
- const backendPort = '8999';
- const graphqlPort = '3000';
- // 无需配置
- const faasIp = (faasEnvironment || environment) === 'development' ? localIP : serverIP;
- const graphqlIP = (graphqlEnvironment || environment) === 'development' ? localIP : serverIP;
- const backend = faasIp + ':' + backendPort;
- // graphql 配置
- const graphqlUrl = graphqlIP + ':' + graphqlPort + '/graphql';
- // api 配置
- const getIdUrl = backend + '/getuserid';
- const loginUrl = backend + '/login';
- const logoutUrl = backend + '/logout';
- const registerUrl = backend + '/resetpassword';
- // graphql 部署配置
- const backendGQ = backend + '/graphql';
- const genJsUrl = backendGQ + '/genjs';
- const checkSchemaUrl = backendGQ + '/compile';
- const deployUrl = backendGQ + '/deployall';
- const removeFC = backendGQ + '/removefc';
- const removeAPI = backendGQ + '/removeapi';
- // 管理员配置
- // 通过在该数组中添加 userID,可以管理 trialcase 的增删改查
- const manageUsers = ['xy_1_je9{d\'\'_32sD+'];
- export {getIdUrl, loginUrl, registerUrl, logoutUrl,checkSchemaUrl, deployUrl, genJsUrl, graphqlUrl, manageUsers, removeFC, removeAPI}
|