config.sample.js 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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 loginButtons = [
  41. {
  42. name: "Microsoft",
  43. id: "microsoft",
  44. url: ``
  45. }
  46. ]
  47. export const useSecret = true; // flag to use secret_ref for endpoints
  48. export const tasksPollTimeout = 5000 // milliseconds
  49. export const migrationSteps = [
  50. {
  51. name: "Migration Type",
  52. title: "Migration Options",
  53. component: "WizardMigrationType"
  54. },
  55. {
  56. name: "Source Cloud",
  57. title: "Select your source cloud",
  58. component: "WizardSource"
  59. },
  60. {
  61. name: "Target Cloud",
  62. title: "Select your target cloud",
  63. component: "WizardTarget"
  64. },
  65. {
  66. name: "Migrate instances",
  67. title: "Select instances",
  68. component: "WizardVms"
  69. },
  70. {
  71. name: "Options",
  72. title: "Options",
  73. component: "WizardOptions"
  74. },
  75. {
  76. name: "Network Mapping",
  77. title: "Network Mapping",
  78. component: "WizardNetworks"
  79. },
  80. {
  81. name: "Summary",
  82. title: "Summary",
  83. component: "WizardSummary"
  84. }
  85. ]