root / snf-cyclades-app / synnefo / app_settings / default / api.py @ 32401481
History | View | Annotate | Download (3.5 kB)
1 |
# -*- coding: utf-8 -*-
|
---|---|
2 |
#
|
3 |
# API configuration
|
4 |
#####################
|
5 |
|
6 |
DEBUG = False
|
7 |
|
8 |
# The API will return HTTP Bad Request if the ?changes-since
|
9 |
# parameter refers to a point in time more than POLL_LIMIT seconds ago.
|
10 |
POLL_LIMIT = 3600
|
11 |
|
12 |
#
|
13 |
# Network Configuration
|
14 |
#
|
15 |
|
16 |
# List of network IDs. All created instances will get a NIC connected to each
|
17 |
# network of this list. If the special network ID "SNF:ANY_PUBLIC" is used,
|
18 |
# Cyclades will automatically choose a public network and connect the server to
|
19 |
# it.
|
20 |
DEFAULT_INSTANCE_NETWORKS = ["SNF:ANY_PUBLIC"]
|
21 |
|
22 |
# Maximum allowed network size for private networks.
|
23 |
MAX_CIDR_BLOCK = 22
|
24 |
|
25 |
# Default settings used by network flavors
|
26 |
DEFAULT_MAC_PREFIX = 'aa:00:0'
|
27 |
DEFAULT_BRIDGE = 'br0'
|
28 |
|
29 |
# Network flavors that users are allowed to create through API requests
|
30 |
API_ENABLED_NETWORK_FLAVORS = ['MAC_FILTERED']
|
31 |
|
32 |
# Settings for IP_LESS_ROUTED network:
|
33 |
# -----------------------------------
|
34 |
# In this case VMCs act as routers that forward the traffic to/from VMs, based
|
35 |
# on the defined routing table($DEFAULT_ROUTING_TABLE) and ip rules, that
|
36 |
# exist in every node, implenting an IP-less routed and proxy-arp setup.
|
37 |
DEFAULT_ROUTING_TABLE = 'snf_public'
|
38 |
|
39 |
# Settings for MAC_FILTERED network:
|
40 |
# ------------------------------------------
|
41 |
# All networks of this type are bridged to the same bridge. Isolation between
|
42 |
# networks is achieved by assigning a unique MAC-prefix to each network and
|
43 |
# filtering packets via ebtables.
|
44 |
DEFAULT_MAC_FILTERED_BRIDGE = 'prv0'
|
45 |
|
46 |
|
47 |
# Firewalling
|
48 |
GANETI_FIREWALL_ENABLED_TAG = 'synnefo:network:0:protected'
|
49 |
GANETI_FIREWALL_DISABLED_TAG = 'synnefo:network:0:unprotected'
|
50 |
GANETI_FIREWALL_PROTECTED_TAG = 'synnefo:network:0:limited'
|
51 |
|
52 |
# The default firewall profile that will be in effect if no tags are defined
|
53 |
DEFAULT_FIREWALL_PROFILE = 'DISABLED'
|
54 |
|
55 |
# Fixed mapping of user VMs to a specific backend.
|
56 |
# e.g. BACKEND_PER_USER = {'example@synnefo.org': 2}
|
57 |
BACKEND_PER_USER = {} |
58 |
|
59 |
# List of backend IDs used *only* for archipelago.
|
60 |
ARCHIPELAGO_BACKENDS = [] |
61 |
|
62 |
|
63 |
# URL templates for the stat graphs.
|
64 |
# The API implementation replaces '%s' with the encrypted backend id.
|
65 |
# FIXME: For now we do not encrypt the backend id.
|
66 |
CPU_BAR_GRAPH_URL = 'http://stats.synnefo.org/%s/cpu-bar.png'
|
67 |
CPU_TIMESERIES_GRAPH_URL = 'http://stats.synnefo.org/%s/cpu-ts.png'
|
68 |
NET_BAR_GRAPH_URL = 'http://stats.synnefo.org/%s/net-bar.png'
|
69 |
NET_TIMESERIES_GRAPH_URL = 'http://stats.synnefo.org/%s/net-ts.png'
|
70 |
|
71 |
# Recommended refresh period for server stats
|
72 |
STATS_REFRESH_PERIOD = 60
|
73 |
|
74 |
# The maximum number of file path/content pairs that can be supplied on server
|
75 |
# build
|
76 |
MAX_PERSONALITY = 5
|
77 |
|
78 |
# The maximum size, in bytes, for each personality file
|
79 |
MAX_PERSONALITY_SIZE = 10240
|
80 |
|
81 |
# Tune the size of the Astakos http client connection pool
|
82 |
# This limit the number of concurrent requests to Astakos.
|
83 |
CYCLADES_ASTAKOSCLIENT_POOLSIZE = 50
|
84 |
|
85 |
# Key for password encryption-decryption. After changing this setting, synnefo
|
86 |
# will be unable to decrypt all existing Backend passwords. You will need to
|
87 |
# store again the new password by using 'snf-manage backend-modify'.
|
88 |
# SECRET_ENCRYPTION_KEY may up to 32 bytes. Keys bigger than 32 bytes are not
|
89 |
# supported.
|
90 |
SECRET_ENCRYPTION_KEY = "Password Encryption Key"
|
91 |
|
92 |
# Astakos service token
|
93 |
# The token used for astakos service api calls (e.g. api to retrieve user email
|
94 |
# using a user uuid)
|
95 |
CYCLADES_SERVICE_TOKEN = ''
|
96 |
|
97 |
# Let cyclades proxy user specific api calls to astakos, via self served
|
98 |
# endpoints. Set this to False if you deploy cyclades-app/astakos-app on the
|
99 |
# same machine.
|
100 |
CYCLADES_PROXY_USER_SERVICES = True
|