Statistics
| Branch: | Tag: | Revision:

root / settings.d / 30-ui.conf @ 46990631

History | View | Annotate | Download (2.3 kB)

1
# -*- coding: utf-8 -*-
2
#
3
# UI settings
4
###################
5

    
6
# base url for ui static files
7
#UI_MEDIA_URL = MEDIA_URL + 'snf/'
8

    
9
# UI requests to the API layer time out after that many milliseconds
10
TIMEOUT = 10 * 1000
11

    
12
# A list of suggested server tags (server metadata keys)
13
DEFAULT_KEYWORDS = ["OS", "Role", "Location", "Owner"]
14

    
15
# A list of allowed icons for OS Images
16
IMAGE_ICONS = ["redhat", "ubuntu", "debian", "windows", "gentoo", "archlinux",
17
               "centos", "fedora", "freebsd", "netbsd", "openbsd", "slackware",
18
               "suse", "kubuntu"]
19

    
20
# How often should the UI request changes from the API
21
UPDATE_INTERVAL = 5000
22

    
23
# List of emails used for sending the feedback messages to (following the ADMINS format)
24
FEEDBACK_CONTACTS = (
25
    # ('Contact Name', 'contact_email@domain.com'),
26
)
27

    
28
# Email from which the feedback emails will be sent from
29
FEEDBACK_EMAIL_FROM = DEFAULT_FROM_EMAIL
30

    
31
# URL to redirect user to when he logs out from the ui (if not set
32
# settings.LOGIN_URL will be used)
33
#LOGOUT_URL = ""
34

    
35
# Flavor options that we provide to the user as predefined 
36
# cpu/ram/disk combinations on vm create wizard
37
VM_CREATE_SUGGESTED_FLAVORS = {
38
    'small': {
39
        'cpu': 1,
40
        'ram': 1024,
41
        'disk': 20
42
    },
43
    'medium': {
44
        'cpu': 2,
45
        'ram': 2048,
46
        'disk': 30
47
    },
48
    'large': {
49
        'cpu': 4,
50
        'ram': 4096,
51
        'disk': 40
52
    }
53
}
54

    
55
# A list of metadata keys to clone from image
56
# to the virtual machine on its creation.
57
VM_IMAGE_COMMON_METADATA = ["OS", "loginname", "logindomain"]
58

    
59
# A list of suggested vm roles to display to user on create wizard
60
VM_CREATE_SUGGESTED_ROLES = ["Database server", "File server", "Mail server", "Web server", "Proxy"]
61

    
62
#######################
63
# UI BEHAVIOUR SETTINGS
64
#######################
65

    
66
# Whether to increase the time of recurrent requests (networks/vms update) if
67
# window loses its focus 
68
UI_DELAY_ON_BLUR = False
69

    
70
# The value of update intervals if window loses its focus
71
# Considered only if `UI_DELAY_ON_BLUR` is set to True
72
UI_BLUR_DELAY = 8000
73

    
74
# Whether not visible vm views will update their content if vm changes 
75
UI_UPDATE_HIDDEN_VIEWS = False
76

    
77
# After how many timeouts of reccurent ajax requests to display the timeout
78
# error overlay
79
UI_SKIP_TIMEOUTS = 1
80

    
81
# Whether UI should display error overlay for all Javascript exceptions
82
UI_HANDLE_WINDOW_EXCEPTIONS = True
83