Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / conf / 20-snf-cyclades-app-api.conf @ 9446e7e5

History | View | Annotate | Download (3.8 kB)

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

    
102
# Let cyclades proxy user specific api calls to astakos, via self served
103
# endpoints. Set this to False if you deploy cyclades-app/astakos-app on the
104
# same machine.
105
#CYCLADES_PROXY_USER_SERVICES = True
106

    
107
# Tune the size of the http connection pool to astakos.
108
#CYCLADES_ASTAKOSCLIENT_POOLSIZE = 50