config.js 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 `destination-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. providersWithExtraOptions: [
  33. 'openstack',
  34. 'oracle_vm',
  35. {
  36. name: 'azure',
  37. envRequiredFields: ['location', 'resource_group'],
  38. },
  39. {
  40. name: 'oci',
  41. envRequiredFields: ['compartment', 'availability_domain'],
  42. },
  43. ],
  44. }
  45. export const config = conf