config.ts 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. import type { Config } from './src/@types/Config'
  2. const conf: Config = {
  3. // The list of pages which will not appear in the navigation menu
  4. // Remove or comment to enable them
  5. disabledPages: [
  6. 'planning',
  7. // Enabling users and projects page by default
  8. // 'users',
  9. // 'projects',
  10. ],
  11. // Whether to show the user domain name input when logging in
  12. showUserDomainInput: false,
  13. // The default user domain name used for logging in
  14. defaultUserDomain: 'default',
  15. // The name of the admin role, used for checking
  16. // if a user is allowed to do certain admin operations
  17. adminRoleName: 'admin',
  18. // Shows the 'Use Current User/Project/Domain for Authentification' switch
  19. // when creating a new openstack endpoint
  20. showOpenstackCurrentUserSwitch: false,
  21. // Whether to use Barbican secrets when creating a new endpoint
  22. useBarbicanSecrets: true,
  23. // The timeout between polling requests
  24. requestPollTimeout: 5000,
  25. // - Specifies the `limit` for each provider when listing all its VMs for pagination.
  26. // - If the provider is not in this list, the 'default' value will be used.
  27. // - If the `default` value is lower than the number of instances that
  28. // fit into a page, the latter number will be used.
  29. // - `Infinity` value means no `limit` will be used, i.e. all VMs will be listed.
  30. instancesListBackgroundLoading: { default: 10, ovm: Infinity, 'hyper-v': Infinity },
  31. /**
  32. * The list of providers for which and extra source or destination options API call will be made,
  33. * if the required fields have any value set.
  34. * If `requiredValues` is provided, the field specified there needs to have a
  35. * certain value (specified in values)
  36. * in order to make the options API call.
  37. * If `relistFields` is provided, the options call will be made if any of the relist fields are changed.
  38. */
  39. extraOptionsApiCalls: [
  40. {
  41. name: 'openstack',
  42. types: ['source'],
  43. requiredFields: ['replica_export_mechanism'],
  44. requiredValues: [
  45. {
  46. field: 'replica_export_mechanism',
  47. values: ['swift_backups', 'ceph_backups', 'coriolis_backups'],
  48. },
  49. ],
  50. },
  51. {
  52. name: 'openstack',
  53. types: ['destination'],
  54. requiredFields: ['list_all_destination_networks'],
  55. },
  56. {
  57. name: 'aws',
  58. types: ['source', 'destination'],
  59. requiredFields: ['region'],
  60. },
  61. {
  62. name: 'azure',
  63. types: ['source', 'destination'],
  64. requiredFields: ['location', 'resource_group'],
  65. },
  66. {
  67. name: 'oci',
  68. types: ['destination'],
  69. requiredFields: ['compartment', 'availability_domain', 'vcn_compartment'],
  70. },
  71. {
  72. name: 'vmware_vsphere',
  73. types: ['destination'],
  74. requiredFields: ['import_datacenter'],
  75. relistFields: ['import_cluster', 'migr_minion_cluster'],
  76. },
  77. ],
  78. /*
  79. Lower number means that the provider will appear sooner in the list.
  80. Equal number means alphabetical order within the same group number.
  81. If the provider is not in the list, it will appear later and alphabetically sorted
  82. with all the other providers not in the list.
  83. */
  84. providerSortPriority: {
  85. aws: 1,
  86. openstack: 1,
  87. vmware_vsphere: 1,
  88. azure: 2,
  89. 'hyper-v': 2,
  90. kubevirt: 2,
  91. scvmm: 2,
  92. oci: 3,
  93. opc: 3,
  94. oracle_vm: 3,
  95. },
  96. // The list of the users to hide in the UI
  97. hiddenUsers: ['barbican', 'coriolis'],
  98. // By default, if a field name contains `password` in it (ex.: `user_password`),
  99. // it will be rendered as a password input
  100. // If the field doesn't contain `password` in its name, the following list will be used instead
  101. passwordFields: ['private_key_passphrase', 'secret_access_key'],
  102. // The number of items per page applicable to main lists:
  103. // replicas, migrations, endpoints, users etc.
  104. mainListItemsPerPage: 20,
  105. maxMinionPoolEventsPerPage: 50,
  106. servicesUrls: {
  107. keystone: '{BASE_URL}/identity',
  108. barbican: '{BASE_URL}/barbican',
  109. coriolis: '{BASE_URL}/coriolis',
  110. coriolisLogs: '{BASE_URL}/logs',
  111. coriolisLogStreamBaseUrl: '{BASE_URL}',
  112. coriolisLicensing: '{BASE_URL}/licensing',
  113. },
  114. }
  115. export const config = conf