Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (2.6 kB)

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

    
6
# base url for ui static files
7
# if not set, defaults to MEDIA_URL + 'snf-<latest_ui_version>/' 
8
#UI_MEDIA_URL = MEDIA_URL + 'snf/'
9

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

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

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

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

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

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

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

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

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

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

    
63
# Template to be used for suggesting the user a default name for newly created
64
# vms.
65
# {0} gets replaced by the image OS value
66
VM_CREATE_NAME_TPL = "My {0} server"
67

    
68
#######################
69
# UI BEHAVIOUR SETTINGS
70
#######################
71

    
72
# Whether to increase the time of recurrent requests (networks/vms update) if
73
# window loses its focus 
74
UI_DELAY_ON_BLUR = False
75

    
76
# The value of update intervals if window loses its focus
77
# Considered only if `UI_DELAY_ON_BLUR` is set to True
78
UI_BLUR_DELAY = 8000
79

    
80
# Whether not visible vm views will update their content if vm changes 
81
UI_UPDATE_HIDDEN_VIEWS = False
82

    
83
# After how many timeouts of reccurent ajax requests to display the timeout
84
# error overlay
85
UI_SKIP_TIMEOUTS = 1
86

    
87
# Whether UI should display error overlay for all Javascript exceptions
88
UI_HANDLE_WINDOW_EXCEPTIONS = True
89