config.js 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. // The list of providers which offer source options
  24. sourceOptionsProviders: ['aws', 'azure', 'openstack', 'vmware_vsphere'],
  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 fit into a page, the latter number will be used.
  28. // - `Infinity` value means no `limit` will be used, i.e. all VMs will be listed.
  29. instancesListBackgroundLoading: { default: 10, ovm: Infinity, 'hyper-v': Infinity },
  30. // The providers for which an extra `source options` or `destination options` call can be made with a set of field values
  31. extraOptionsApiCalls: [
  32. {
  33. name: 'azure',
  34. types: ['source', 'destination'],
  35. requiredFields: ['location', 'resource_group'],
  36. },
  37. {
  38. name: 'oci',
  39. types: ['destination'],
  40. requiredFields: ['compartment', 'availability_domain', 'vcn_compartment'],
  41. },
  42. ],
  43. /*
  44. Lower number means that the provider will appear sooner in the list.
  45. Equal number means alphabetical order within the same group number.
  46. If the provider is not in the list, it will appear later and alphabetically sorted
  47. with all the other providers not in the list.
  48. */
  49. providerSortPriority: {
  50. aws: 1,
  51. openstack: 1,
  52. vmware_vsphere: 1,
  53. azure: 2,
  54. 'hyper-v': 2,
  55. scvmm: 2,
  56. oci: 3,
  57. opc: 3,
  58. oracle_vm: 3,
  59. },
  60. // The list of the users to hide in the UI
  61. hiddenUsers: ['barbican', 'coriolis'],
  62. // By default, if a field name contains `password` in it (ex.: `user_password`), it will be rendered as a password input
  63. // If the field doesn't contain `password` in its name, the following list will be used instead
  64. passwordFields: ['private_key_passphrase', 'secret_access_key'],
  65. }
  66. export const config = conf