config.js 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. '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. // The list of providers which offer source options
  23. sourceOptionsProviders: ['aws'],
  24. // - Specifies the `limit` for each provider when listing all its VMs for pagination.
  25. // - If the provider is not in this list, the 'default' value will be used.
  26. // - If the `default` value is lower than the number of instances that fit into a page, the latter number will be used.
  27. // - `Infinity` value means no `limit` will be used, i.e. all VMs will be listed.
  28. instancesListBackgroundLoading: { default: 10, ovm: Infinity },
  29. // A list of providers for which `source-options` API call(s) will be made
  30. // If the item is just a string with the provider name, only one API call will be made
  31. // If the item has `envRequiredFields`, an additional API call will be made once the specified fields are filled
  32. sourceProvidersWithExtraOptions: ['aws'],
  33. // A list of providers for which `destination-options` API call(s) will be made
  34. // If the item is just a string with the provider name, only one API call will be made
  35. // If the item has `envRequiredFields`, an additional API call will be made once the specified fields are filled
  36. destinationProvidersWithExtraOptions: [
  37. 'openstack',
  38. 'oracle_vm',
  39. 'aws',
  40. {
  41. name: 'azure',
  42. envRequiredFields: ['location', 'resource_group'],
  43. },
  44. {
  45. name: 'oci',
  46. envRequiredFields: ['compartment', 'availability_domain'],
  47. },
  48. ],
  49. /*
  50. Lower number means that the provider will appear sooner in the list.
  51. Equal number means alphabetical order within the same group number.
  52. If the provider is not in the list, it will appear later and alphabetically sorted
  53. with all the other providers not in the list.
  54. */
  55. providerSortPriority: {
  56. aws: 1,
  57. openstack: 1,
  58. vmware_vsphere: 1,
  59. azure: 2,
  60. 'hyper-v': 2,
  61. scvmm: 2,
  62. oci: 3,
  63. opc: 3,
  64. oracle_vm: 3,
  65. },
  66. // The list of the users to hide in the UI
  67. hiddenUsers: ['barbican', 'coriolis'],
  68. }
  69. export const config = conf