config.js 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. // @flow
  2. import type { Config } from './src/types/Config'
  3. const conf: Config = {
  4. // The list of pages which will not appear in the navigation menu
  5. // Remove or comment to enable them
  6. disabledPages: [
  7. 'planning',
  8. // Enabling users and projects page by default
  9. // 'users',
  10. // 'projects',
  11. ],
  12. // Whether to show the user domain name input when logging in
  13. showUserDomainInput: false,
  14. // The default user domain name used for logging in
  15. defaultUserDomain: 'default',
  16. // Shows the 'Use Current User/Project/Domain for Authentification' switch
  17. // when creating a new openstack endpoint
  18. showOpenstackCurrentUserSwitch: false,
  19. // Whether to use Barbican secrets when creating a new endpoint
  20. useBarbicanSecrets: true,
  21. // The timeout between polling requests
  22. requestPollTimeout: 5000,
  23. // - Specifies the `limit` for each provider when listing all its VMs for pagination.
  24. // - If the provider is not in this list, the 'default' value will be used.
  25. // - If the `default` value is lower than the number of instances that 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 certain value (specified in values)
  32. * in order to make the options API call.
  33. */
  34. extraOptionsApiCalls: [
  35. {
  36. name: 'openstack',
  37. types: ['source'],
  38. requiredFields: ['replica_export_mechanism'],
  39. requiredValues: [
  40. {
  41. field: 'replica_export_mechanism',
  42. values: ['swift_backups', 'ceph_backups', 'coriolis_backups'],
  43. },
  44. ],
  45. },
  46. {
  47. name: 'azure',
  48. types: ['source', 'destination'],
  49. requiredFields: ['location', 'resource_group'],
  50. },
  51. {
  52. name: 'oci',
  53. types: ['destination'],
  54. requiredFields: ['compartment', 'availability_domain', 'vcn_compartment'],
  55. },
  56. ],
  57. /*
  58. Lower number means that the provider will appear sooner in the list.
  59. Equal number means alphabetical order within the same group number.
  60. If the provider is not in the list, it will appear later and alphabetically sorted
  61. with all the other providers not in the list.
  62. */
  63. providerSortPriority: {
  64. aws: 1,
  65. openstack: 1,
  66. vmware_vsphere: 1,
  67. azure: 2,
  68. 'hyper-v': 2,
  69. scvmm: 2,
  70. oci: 3,
  71. opc: 3,
  72. oracle_vm: 3,
  73. },
  74. // The list of the users to hide in the UI
  75. hiddenUsers: ['barbican', 'coriolis'],
  76. // By default, if a field name contains `password` in it (ex.: `user_password`), it will be rendered as a password input
  77. // If the field doesn't contain `password` in its name, the following list will be used instead
  78. passwordFields: ['private_key_passphrase', 'secret_access_key'],
  79. // The number of items per page applicable to main lists: replicas, migrations, endpoints, users etc.
  80. mainListItemsPerPage: 20,
  81. }
  82. export const config = conf