config.js 825 B

12345678910111213141516171819202122232425
  1. // 基础配置
  2. const serverIP = 'http://123.206.193.98';
  3. const backendPort = '8999';
  4. const graphqlPort = '3000';
  5. const backend = serverIP + ':' + backendPort;
  6. // graphql 配置
  7. const graphqlUrl = serverIP + ':' + graphqlPort + '/graphql';
  8. // api 配置
  9. const getIdUrl = backend + '/getuserid';
  10. const loginUrl = backend + '/login';
  11. const registerUrl = backend + '/resetpassword';
  12. // graphql 部署配置
  13. const backendGQ = backend + '/graphql';
  14. const genJsUrl = backendGQ + '/genjs';
  15. const checkSchemaUrl = backendGQ + '/compile';
  16. const deployUrl = backendGQ + '/deployall';
  17. // 管理员配置
  18. // 通过在该数组中添加 userID,可以管理 trialcase 的增删改查
  19. const manageUsers = ['xy_1_je9{d\'\'_32sD+'];
  20. export {getIdUrl, loginUrl, registerUrl, checkSchemaUrl, deployUrl, genJsUrl, graphqlUrl, manageUsers}