config.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 storage listing
  23. storageProviders: ['openstack', 'azure', 'oracle_vm'],
  24. // The list of providers which offer source options
  25. sourceOptionsProviders: ['aws'],
  26. // - Specifies the `limit` for each provider when listing all its VMs for pagination.
  27. // - If the provider is not in this list, the 'default' value will be used.
  28. // - If the `default` value is lower than the number of instances that 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 },
  31. // A list of providers for which `destination-options` API call(s) will be made
  32. // If the item is just a string with the provider name, only one API call will be made
  33. // If the item has `envRequiredFields`, an additional API call will be made once the specified fields are filled
  34. providersWithExtraOptions: [
  35. 'openstack',
  36. 'oracle_vm',
  37. {
  38. name: 'azure',
  39. envRequiredFields: ['location', 'resource_group'],
  40. },
  41. {
  42. name: 'oci',
  43. envRequiredFields: ['compartment', 'availability_domain'],
  44. },
  45. ],
  46. }
  47. export const config = conf