config.sample.js 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /*
  2. Copyright (C) 2017 Cloudbase Solutions SRL
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU Affero General Public License as
  5. published by the Free Software Foundation, either version 3 of the
  6. License, or (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU Affero General Public License for more details.
  11. You should have received a copy of the GNU Affero General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. /* eslint-disable */
  15. /* jscs:disable maximumLineLength */
  16. export const port = process.env.PORT || 3000;
  17. export const host = process.env.WEBSITE_HOSTNAME || `localhost:${port}`;
  18. export const coriolisUrl = process.env.CORIOLIS_URL || "/"
  19. export const defaultDomain = "default";
  20. // Number of instances in wizard Migrate VMs step
  21. export const itemsPerPage = 6;
  22. export const securityGroups = ["testgroup"]
  23. export const servicesUrl = {
  24. identity: coriolisUrl + "identity/auth/tokens",
  25. projects: coriolisUrl + "identity/auth/projects",
  26. users: coriolisUrl + "identity/users",
  27. endpoints: coriolisUrl + "coriolis/endpoints",
  28. coriolis: coriolisUrl + "coriolis",
  29. migrations: coriolisUrl + "coriolis/migrations",
  30. barbican: coriolisUrl + "barbican",
  31. openId: coriolisUrl + "identity/OS-FEDERATION/identity_providers/google/protocols/openid/auth"
  32. }
  33. export const providerType = {
  34. import_migration: 1,
  35. export_migration: 2,
  36. import_replica: 4,
  37. export_replica: 8,
  38. endpoint: 16
  39. }
  40. export const useSecret = true; // flag to use secret_ref for endpoints
  41. export const tasksPollTimeout = 5000 // milliseconds
  42. export const migrationSteps = [
  43. {
  44. name: "Migration Type",
  45. title: "Migration Options",
  46. component: "WizardMigrationType"
  47. },
  48. {
  49. name: "Source Cloud",
  50. title: "Select your source cloud",
  51. component: "WizardSource"
  52. },
  53. {
  54. name: "Target Cloud",
  55. title: "Select your target cloud",
  56. component: "WizardTarget"
  57. },
  58. {
  59. name: "Migrate instances",
  60. title: "Select instances",
  61. component: "WizardVms"
  62. },
  63. {
  64. name: "Options",
  65. title: "Options",
  66. component: "WizardOptions"
  67. },
  68. {
  69. name: "Network Mapping",
  70. title: "Network Mapping",
  71. component: "WizardNetworks"
  72. },
  73. {
  74. name: "Schedule",
  75. title: "Schedule",
  76. component: "WizardSchedule"
  77. },
  78. {
  79. name: "Summary",
  80. title: "Summary",
  81. component: "WizardSummary"
  82. }
  83. ]