index.js 1002B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* Configuration file for the server */
  2. var config = {};
  3. config.db = {};
  4. config.db.tools = {};
  5. config.jira = {};
  6. config.jira.api = {};
  7. config.jira.toolSupport = {};
  8. //Server Config
  9. config.httpPort = 8081;
  10. config.httpsPort = 8443;
  11. config.secretKey = "38107824-cdc7-4769-8aa2-1eac80993245";
  12. //MongoDB Config
  13. config.db.username = "portalServer";
  14. config.db.password = "T00lsTeam";
  15. config.db.tools.path = "mongodb://localhost:27017/portal";
  16. //JIRA Config
  17. //URL to use for JIRA REST API calls (dev/prod)
  18. //Prod = https://jiraemv.zebra.com
  19. //Dev = https://dev-jiraemv.zebra.lan OR https://10.183.4.31
  20. //config.jira.url = "10.183.4.31";
  21. config.jira.url = "dev-jiraemv.zebra.lan";
  22. //API endpoints
  23. config.jira.api.user = "/rest/api/2/user";
  24. config.jira.api.login = "/rest/auth/1/session";
  25. config.jira.api.issue = "/rest/api/2/issue";
  26. //Project/Issue
  27. config.jira.toolSupport.projectId = 10300;
  28. config.jira.toolSupport.requestId = 11200;
  29. config.jira.toolSupport.changeId = 11201;
  30. module.exports = config;