config.ts 3.6 KB

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