forked from alexpilotti/coriolis-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
77 lines (62 loc) · 2.21 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// @flow
import type { Config } from './src/types/Config'
const conf: Config = {
// The list of pages which will not appear in the navigation menu
// Remove or comment to enable them
disabledPages: [
'planning',
'users',
'projects',
],
// Whether to show the user domain name input when logging in
showUserDomainInput: false,
// The default user domain name used for logging in
defaultUserDomain: 'default',
// Shows the 'Use Current User/Project/Domain for Authentification' switch
// when creating a new openstack endpoint
showOpenstackCurrentUserSwitch: false,
// Whether to use Barbican secrets when creating a new endpoint
useBarbicanSecrets: true,
// The timeout between polling requests
requestPollTimeout: 5000,
// The list of providers which offer source options
sourceOptionsProviders: ['aws'],
// - Specifies the `limit` for each provider when listing all its VMs for pagination.
// - If the provider is not in this list, the 'default' value will be used.
// - If the `default` value is lower than the number of instances that fit into a page, the latter number will be used.
// - `Infinity` value means no `limit` will be used, i.e. all VMs will be listed.
instancesListBackgroundLoading: { default: 10, ovm: Infinity },
// The providers for which an extra `source` or `destination options` call can be made with a set of field values
providersWithEnvOptions: [
{
name: 'azure',
type: 'destination',
envRequiredFields: ['location', 'resource_group'],
},
{
name: 'oci',
type: 'destination',
envRequiredFields: ['compartment', 'availability_domain'],
},
],
/*
Lower number means that the provider will appear sooner in the list.
Equal number means alphabetical order within the same group number.
If the provider is not in the list, it will appear later and alphabetically sorted
with all the other providers not in the list.
*/
providerSortPriority: {
aws: 1,
openstack: 1,
vmware_vsphere: 1,
azure: 2,
'hyper-v': 2,
scvmm: 2,
oci: 3,
opc: 3,
oracle_vm: 3,
},
// The list of the users to hide in the UI
hiddenUsers: ['barbican', 'coriolis'],
}
export const config = conf