root / snf-astakos-app / astakos / im / settings.py @ 6795eb09
History | View | Annotate | Download (13.3 kB)
1 | 92defad4 | Sofia Papagiannaki | from django.conf import settings |
---|---|---|---|
2 | 92defad4 | Sofia Papagiannaki | |
3 | 92defad4 | Sofia Papagiannaki | # Set the expiration time of newly created auth tokens
|
4 | 92defad4 | Sofia Papagiannaki | # to be this many hours after their creation time.
|
5 | 92defad4 | Sofia Papagiannaki | AUTH_TOKEN_DURATION = getattr(settings, 'ASTAKOS_AUTH_TOKEN_DURATION', 30 * 24) |
6 | 92defad4 | Sofia Papagiannaki | |
7 | 1c4e8364 | Kostas Papadimitriou | # OAuth2 Twitter credentials.
|
8 | c101b32b | Kostas Papadimitriou | TWITTER_TOKEN = getattr(settings, 'ASTAKOS_TWITTER_TOKEN', '') |
9 | 92defad4 | Sofia Papagiannaki | TWITTER_SECRET = getattr(settings, 'ASTAKOS_TWITTER_SECRET', '') |
10 | 1c4e8364 | Kostas Papadimitriou | TWITTER_AUTH_FORCE_LOGIN = getattr(settings, 'ASTAKOS_TWITTER_AUTH_FORCE_LOGIN', |
11 | 1c4e8364 | Kostas Papadimitriou | False)
|
12 | 92defad4 | Sofia Papagiannaki | |
13 | 74796dd8 | Kostas Papadimitriou | |
14 | 74796dd8 | Kostas Papadimitriou | # OAuth2 Google credentials.
|
15 | 74796dd8 | Kostas Papadimitriou | GOOGLE_CLIENT_ID = getattr(settings, 'ASTAKOS_GOOGLE_CLIENT_ID', '') |
16 | 74796dd8 | Kostas Papadimitriou | GOOGLE_SECRET = getattr(settings, 'ASTAKOS_GOOGLE_SECRET', '') |
17 | 74796dd8 | Kostas Papadimitriou | |
18 | 74796dd8 | Kostas Papadimitriou | # OAuth2 LinkedIn credentials.
|
19 | 74796dd8 | Kostas Papadimitriou | LINKEDIN_TOKEN = getattr(settings, 'ASTAKOS_LINKEDIN_TOKEN', '') |
20 | 74796dd8 | Kostas Papadimitriou | LINKEDIN_SECRET = getattr(settings, 'ASTAKOS_LINKEDIN_SECRET', '') |
21 | 92defad4 | Sofia Papagiannaki | |
22 | 92defad4 | Sofia Papagiannaki | DEFAULT_USER_LEVEL = getattr(settings, 'ASTAKOS_DEFAULT_USER_LEVEL', 4) |
23 | 92defad4 | Sofia Papagiannaki | |
24 | 92defad4 | Sofia Papagiannaki | INVITATIONS_PER_LEVEL = getattr(settings, 'ASTAKOS_INVITATIONS_PER_LEVEL', { |
25 | 5ce3ce4f | Sofia Papagiannaki | 0: 100, |
26 | 5ce3ce4f | Sofia Papagiannaki | 1: 2, |
27 | 5ce3ce4f | Sofia Papagiannaki | 2: 0, |
28 | 5ce3ce4f | Sofia Papagiannaki | 3: 0, |
29 | 5ce3ce4f | Sofia Papagiannaki | 4: 0 |
30 | 92defad4 | Sofia Papagiannaki | }) |
31 | 92defad4 | Sofia Papagiannaki | |
32 | 92defad4 | Sofia Papagiannaki | # Address to use for outgoing emails
|
33 | 5ce3ce4f | Sofia Papagiannaki | DEFAULT_CONTACT_EMAIL = getattr(
|
34 | 5ce3ce4f | Sofia Papagiannaki | settings, 'ASTAKOS_DEFAULT_CONTACT_EMAIL', 'support@cloud.grnet.gr') |
35 | 92defad4 | Sofia Papagiannaki | |
36 | 92defad4 | Sofia Papagiannaki | # Identity Management enabled modules
|
37 | 55c99c1c | Sofia Papagiannaki | # Supported modules are: 'local', 'twitter' and 'shibboleth'
|
38 | 55c99c1c | Sofia Papagiannaki | IM_MODULES = getattr(settings, 'ASTAKOS_IM_MODULES', ['local']) |
39 | 92defad4 | Sofia Papagiannaki | |
40 | 92defad4 | Sofia Papagiannaki | # Force user profile verification
|
41 | 92defad4 | Sofia Papagiannaki | FORCE_PROFILE_UPDATE = getattr(settings, 'ASTAKOS_FORCE_PROFILE_UPDATE', True) |
42 | 92defad4 | Sofia Papagiannaki | |
43 | 92defad4 | Sofia Papagiannaki | #Enable invitations
|
44 | 55c99c1c | Sofia Papagiannaki | INVITATIONS_ENABLED = getattr(settings, 'ASTAKOS_INVITATIONS_ENABLED', False) |
45 | 92defad4 | Sofia Papagiannaki | |
46 | 92defad4 | Sofia Papagiannaki | COOKIE_NAME = getattr(settings, 'ASTAKOS_COOKIE_NAME', '_pithos2_a') |
47 | 92defad4 | Sofia Papagiannaki | COOKIE_DOMAIN = getattr(settings, 'ASTAKOS_COOKIE_DOMAIN', None) |
48 | ca34523e | Antony Chazapis | COOKIE_SECURE = getattr(settings, 'ASTAKOS_COOKIE_SECURE', True) |
49 | 92defad4 | Sofia Papagiannaki | |
50 | 94459980 | Kostas Papadimitriou | IM_STATIC_URL = getattr(settings, 'ASTAKOS_IM_STATIC_URL', '/static/im/') |
51 | 92defad4 | Sofia Papagiannaki | |
52 | 1463659a | Sofia Papagiannaki | # If set to False and invitations not enabled newly created user will be automatically accepted
|
53 | 1463659a | Sofia Papagiannaki | MODERATION_ENABLED = getattr(settings, 'ASTAKOS_MODERATION_ENABLED', True) |
54 | 1463659a | Sofia Papagiannaki | |
55 | 374611bc | Sofia Papagiannaki | # Set baseurl
|
56 | 374611bc | Sofia Papagiannaki | BASEURL = getattr(settings, 'ASTAKOS_BASEURL', 'http://pithos.dev.grnet.gr') |
57 | 374611bc | Sofia Papagiannaki | |
58 | 374611bc | Sofia Papagiannaki | # Set service name
|
59 | d552ecb7 | Antony Chazapis | SITENAME = getattr(settings, 'ASTAKOS_SITENAME', 'GRNET Cloud') |
60 | 1ae97c83 | Sofia Papagiannaki | |
61 | db7fecd9 | Sofia Papagiannaki | # Set recaptcha keys
|
62 | db7fecd9 | Sofia Papagiannaki | RECAPTCHA_PUBLIC_KEY = getattr(settings, 'ASTAKOS_RECAPTCHA_PUBLIC_KEY', '') |
63 | db7fecd9 | Sofia Papagiannaki | RECAPTCHA_PRIVATE_KEY = getattr(settings, 'ASTAKOS_RECAPTCHA_PRIVATE_KEY', '') |
64 | 5ce3ce4f | Sofia Papagiannaki | RECAPTCHA_OPTIONS = getattr(settings, 'ASTAKOS_RECAPTCHA_OPTIONS', |
65 | 5ce3ce4f | Sofia Papagiannaki | {'theme': 'custom', 'custom_theme_widget': 'okeanos_recaptcha'}) |
66 | 989b28f3 | Kostas Papadimitriou | RECAPTCHA_USE_SSL = getattr(settings, 'ASTAKOS_RECAPTCHA_USE_SSL', True) |
67 | 55c99c1c | Sofia Papagiannaki | RECAPTCHA_ENABLED = getattr(settings, 'ASTAKOS_RECAPTCHA_ENABLED', False) |
68 | ee1de5e9 | Kostas Papadimitriou | |
69 | 9c01d9d1 | Sofia Papagiannaki | # set AstakosUser fields to propagate in the billing system
|
70 | 91bf571f | Sofia Papagiannaki | BILLING_FIELDS = getattr(settings, 'ASTAKOS_BILLING_FIELDS', ['is_active']) |
71 | 9c01d9d1 | Sofia Papagiannaki | |
72 | 9c01d9d1 | Sofia Papagiannaki | # Queue for billing.
|
73 | 5ce3ce4f | Sofia Papagiannaki | QUEUE_CONNECTION = getattr(settings, 'ASTAKOS_QUEUE_CONNECTION', None) # Example: 'rabbitmq://guest:guest@localhost:5672/astakos' |
74 | 3a9f4931 | Sofia Papagiannaki | |
75 | 3a9f4931 | Sofia Papagiannaki | # Set where the user should be redirected after logout
|
76 | ebd369d0 | Sofia Papagiannaki | LOGOUT_NEXT = getattr(settings, 'ASTAKOS_LOGOUT_NEXT', '') |
77 | ebd369d0 | Sofia Papagiannaki | |
78 | ebd369d0 | Sofia Papagiannaki | # Set user email patterns that are automatically activated
|
79 | 5ce3ce4f | Sofia Papagiannaki | RE_USER_EMAIL_PATTERNS = getattr(
|
80 | 5ce3ce4f | Sofia Papagiannaki | settings, 'ASTAKOS_RE_USER_EMAIL_PATTERNS', [])
|
81 | 25d9d4d0 | Sofia Papagiannaki | |
82 | 76776df1 | Kostas Papadimitriou | # Messages to display on login page header
|
83 | 76776df1 | Kostas Papadimitriou | # e.g. {'warning': 'This warning message will be displayed on the top of login page'}
|
84 | 4f78c22c | Sofia Papagiannaki | LOGIN_MESSAGES = getattr(settings, 'ASTAKOS_LOGIN_MESSAGES', []) |
85 | 25d9d4d0 | Sofia Papagiannaki | |
86 | ad956265 | Kostas Papadimitriou | # Messages to display on login page header
|
87 | ad956265 | Kostas Papadimitriou | # e.g. {'warning': 'This warning message will be displayed on the top of signup page'}
|
88 | 4f78c22c | Sofia Papagiannaki | SIGNUP_MESSAGES = getattr(settings, 'ASTAKOS_SIGNUP_MESSAGES', []) |
89 | ad956265 | Kostas Papadimitriou | |
90 | ad956265 | Kostas Papadimitriou | # Messages to display on login page header
|
91 | ad956265 | Kostas Papadimitriou | # e.g. {'warning': 'This warning message will be displayed on the top of profile page'}
|
92 | 4f78c22c | Sofia Papagiannaki | PROFILE_MESSAGES = getattr(settings, 'ASTAKOS_PROFILE_MESSAGES', []) |
93 | ad956265 | Kostas Papadimitriou | |
94 | ad956265 | Kostas Papadimitriou | # Messages to display on all pages
|
95 | ad956265 | Kostas Papadimitriou | # e.g. {'warning': 'This warning message will be displayed on the top of every page'}
|
96 | 4f78c22c | Sofia Papagiannaki | GLOBAL_MESSAGES = getattr(settings, 'ASTAKOS_GLOBAL_MESSAGES', []) |
97 | ad956265 | Kostas Papadimitriou | |
98 | 76776df1 | Kostas Papadimitriou | # messages to display as extra actions in account forms
|
99 | 76776df1 | Kostas Papadimitriou | # e.g. {'https://cms.okeanos.grnet.gr/': 'Back to ~okeanos'}
|
100 | 76776df1 | Kostas Papadimitriou | PROFILE_EXTRA_LINKS = getattr(settings, 'ASTAKOS_PROFILE_EXTRA_LINKS', {}) |
101 | 76776df1 | Kostas Papadimitriou | |
102 | 1cbce16f | Sofia Papagiannaki | # The number of unsuccessful login requests per minute allowed for a specific user
|
103 | 5ce3ce4f | Sofia Papagiannaki | RATELIMIT_RETRIES_ALLOWED = getattr(
|
104 | 5ce3ce4f | Sofia Papagiannaki | settings, 'ASTAKOS_RATELIMIT_RETRIES_ALLOWED', 3) |
105 | 672d445a | Sofia Papagiannaki | |
106 | e2447828 | Sofia Papagiannaki | # If False the email change mechanism is disabled
|
107 | e2447828 | Sofia Papagiannaki | EMAILCHANGE_ENABLED = getattr(settings, 'ASTAKOS_EMAILCHANGE_ENABLED', False) |
108 | e2447828 | Sofia Papagiannaki | |
109 | e2447828 | Sofia Papagiannaki | # Set the expiration time (in days) of email change requests
|
110 | 5ce3ce4f | Sofia Papagiannaki | EMAILCHANGE_ACTIVATION_DAYS = getattr(
|
111 | 5ce3ce4f | Sofia Papagiannaki | settings, 'ASTAKOS_EMAILCHANGE_ACTIVATION_DAYS', 10) |
112 | 111f3da6 | Sofia Papagiannaki | |
113 | c9e378c7 | Sofia Papagiannaki | # Set the astakos main functions logging severity (None to disable)
|
114 | 111f3da6 | Sofia Papagiannaki | from logging import INFO |
115 | ad956265 | Kostas Papadimitriou | LOGGING_LEVEL = getattr(settings, 'ASTAKOS_LOGGING_LEVEL', INFO) |
116 | fc1e2f02 | Sofia Papagiannaki | |
117 | 1fcf4a99 | Kostas Papadimitriou | # Configurable email subjects
|
118 | f46c95c4 | Sofia Papagiannaki | INVITATION_EMAIL_SUBJECT = getattr(
|
119 | f46c95c4 | Sofia Papagiannaki | settings, 'ASTAKOS_INVITATION_EMAIL_SUBJECT',
|
120 | f46c95c4 | Sofia Papagiannaki | 'Invitation to %s alpha2 testing' % SITENAME)
|
121 | 1fcf4a99 | Kostas Papadimitriou | GREETING_EMAIL_SUBJECT = getattr(settings, 'ASTAKOS_GREETING_EMAIL_SUBJECT', |
122 | f46c95c4 | Sofia Papagiannaki | 'Welcome to %s alpha2 testing' % SITENAME)
|
123 | 1fcf4a99 | Kostas Papadimitriou | FEEDBACK_EMAIL_SUBJECT = getattr(settings, 'ASTAKOS_FEEDBACK_EMAIL_SUBJECT', |
124 | f46c95c4 | Sofia Papagiannaki | 'Feedback from %s alpha2 testing' % SITENAME)
|
125 | f46c95c4 | Sofia Papagiannaki | VERIFICATION_EMAIL_SUBJECT = getattr(
|
126 | f46c95c4 | Sofia Papagiannaki | settings, 'ASTAKOS_VERIFICATION_EMAIL_SUBJECT',
|
127 | f46c95c4 | Sofia Papagiannaki | '%s alpha2 testing account activation is needed' % SITENAME)
|
128 | f46c95c4 | Sofia Papagiannaki | ACCOUNT_CREATION_SUBJECT = getattr(
|
129 | f46c95c4 | Sofia Papagiannaki | settings, 'ASTAKOS_ACCOUNT_CREATION_SUBJECT',
|
130 | f46c95c4 | Sofia Papagiannaki | '%s alpha2 testing account created (%%(user)s)' % SITENAME)
|
131 | c4d1b547 | Sofia Papagiannaki | GROUP_CREATION_SUBJECT = getattr(
|
132 | c4d1b547 | Sofia Papagiannaki | settings, 'ASTAKOS_GROUP_CREATION_SUBJECT',
|
133 | c4d1b547 | Sofia Papagiannaki | '%s alpha2 testing group created (%%(group)s)' % SITENAME)
|
134 | f46c95c4 | Sofia Papagiannaki | HELPDESK_NOTIFICATION_EMAIL_SUBJECT = getattr(
|
135 | f46c95c4 | Sofia Papagiannaki | settings, 'ASTAKOS_HELPDESK_NOTIFICATION_EMAIL_SUBJECT',
|
136 | f46c95c4 | Sofia Papagiannaki | '%s alpha2 testing account activated (%%(user)s)' % SITENAME)
|
137 | f46c95c4 | Sofia Papagiannaki | EMAIL_CHANGE_EMAIL_SUBJECT = getattr(
|
138 | f46c95c4 | Sofia Papagiannaki | settings, 'ASTAKOS_EMAIL_CHANGE_EMAIL_SUBJECT',
|
139 | f46c95c4 | Sofia Papagiannaki | 'Email change on %s alpha2 testing' % SITENAME)
|
140 | f46c95c4 | Sofia Papagiannaki | PASSWORD_RESET_EMAIL_SUBJECT = getattr(
|
141 | f46c95c4 | Sofia Papagiannaki | settings, 'ASTAKOS_PASSWORD_RESET_EMAIL_SUBJECT',
|
142 | f46c95c4 | Sofia Papagiannaki | 'Password reset on %s alpha2 testing' % SITENAME)
|
143 | c4d1b547 | Sofia Papagiannaki | PROJECT_CREATION_SUBJECT = getattr(
|
144 | c4d1b547 | Sofia Papagiannaki | settings, 'ASTAKOS_PROJECT_CREATION_SUBJECT',
|
145 | c4d1b547 | Sofia Papagiannaki | '%s alpha2 testing project application created (%%(name)s)' % SITENAME)
|
146 | c4d1b547 | Sofia Papagiannaki | PROJECT_APPROVED_SUBJECT = getattr(
|
147 | c4d1b547 | Sofia Papagiannaki | settings, 'ASTAKOS_PROJECT_APPROVED_SUBJECT',
|
148 | c4d1b547 | Sofia Papagiannaki | '%s alpha2 testing project application approved (%%(name)s)' % SITENAME)
|
149 | c4d1b547 | Sofia Papagiannaki | PROJECT_TERMINATION_SUBJECT = getattr(
|
150 | c4d1b547 | Sofia Papagiannaki | settings, 'ASTAKOS_PROJECT_TERMINATION_SUBJECT',
|
151 | c4d1b547 | Sofia Papagiannaki | '%s alpha2 testing project terminated (%%(name)s)' % SITENAME)
|
152 | c4d1b547 | Sofia Papagiannaki | PROJECT_SUSPENSION_SUBJECT = getattr(
|
153 | c4d1b547 | Sofia Papagiannaki | settings, 'ASTAKOS_PROJECT_SUSPENSION_SUBJECT',
|
154 | c4d1b547 | Sofia Papagiannaki | '%s alpha2 testing project suspended (%%(name)s)' % SITENAME)
|
155 | c4d1b547 | Sofia Papagiannaki | PROJECT_MEMBERSHIP_CHANGE_SUBJECT = getattr(
|
156 | c4d1b547 | Sofia Papagiannaki | settings, 'ASTAKOS_PROJECT_MEMBERSHIP_CHANGE_SUBJECT',
|
157 | c4d1b547 | Sofia Papagiannaki | '%s alpha2 testing project membership changed (%%(name)s)' % SITENAME)
|
158 | 4f78c22c | Sofia Papagiannaki | |
159 | 8cc49f4d | Sofia Papagiannaki | # Set the quota holder component URI
|
160 | 30d92d1e | Georgios D. Tsoukalas | QUOTAHOLDER_URL = getattr(settings, 'ASTAKOS_QUOTAHOLDER_URL', '') |
161 | a2214bd1 | Kostas Papadimitriou | QUOTAHOLDER_TOKEN = getattr(settings, 'ASTAKOS_QUOTAHOLDER_TOKEN', '') |
162 | 8cc49f4d | Sofia Papagiannaki | |
163 | 8cc49f4d | Sofia Papagiannaki | # Set the cloud service properties
|
164 | 4fef28ef | root | SERVICES = getattr(settings, 'ASTAKOS_SERVICES', { |
165 | 952c0979 | Sofia Papagiannaki | 'cyclades': {
|
166 | 952c0979 | Sofia Papagiannaki | 'url': 'https://node1.example.com/ui/', |
167 | 952c0979 | Sofia Papagiannaki | 'resources': [{
|
168 | cd1e1513 | root | 'name':'disk', |
169 | 1f3ad141 | Sofia Papagiannaki | 'group':'compute', |
170 | cd1e1513 | root | 'uplimit':30*1024*1024*1024, |
171 | efb70adf | Sofia Papagiannaki | 'unit':'bytes', |
172 | 952c0979 | Sofia Papagiannaki | 'desc': 'Virtual machine disk size' |
173 | 952c0979 | Sofia Papagiannaki | },{ |
174 | 952c0979 | Sofia Papagiannaki | 'name':'cpu', |
175 | 1f3ad141 | Sofia Papagiannaki | 'group':'compute', |
176 | cd1e1513 | root | 'uplimit':6, |
177 | 952c0979 | Sofia Papagiannaki | 'desc': 'Number of virtual machine processors' |
178 | 952c0979 | Sofia Papagiannaki | },{ |
179 | 952c0979 | Sofia Papagiannaki | 'name':'ram', |
180 | 1f3ad141 | Sofia Papagiannaki | 'group':'compute', |
181 | cd1e1513 | root | 'uplimit':6*1024*1024*1024, |
182 | efb70adf | Sofia Papagiannaki | 'unit':'bytes', |
183 | 952c0979 | Sofia Papagiannaki | 'desc': 'Virtual machines' |
184 | c8152897 | Sofia Papagiannaki | },{ |
185 | e2497bc5 | Sofia Papagiannaki | 'name':'vm', |
186 | e2497bc5 | Sofia Papagiannaki | 'group':'compute', |
187 | e2497bc5 | Sofia Papagiannaki | 'uplimit':2, |
188 | e2497bc5 | Sofia Papagiannaki | 'desc': 'Number of virtual machines' |
189 | e2497bc5 | Sofia Papagiannaki | },{ |
190 | c8152897 | Sofia Papagiannaki | 'name':'network.private', |
191 | 4fef28ef | root | 'group':'network', |
192 | c8152897 | Sofia Papagiannaki | 'uplimit':1, |
193 | c8152897 | Sofia Papagiannaki | 'desc': 'Private networks' |
194 | c8152897 | Sofia Papagiannaki | } |
195 | c8152897 | Sofia Papagiannaki | ] |
196 | 952c0979 | Sofia Papagiannaki | }, |
197 | 952c0979 | Sofia Papagiannaki | 'pithos+': {
|
198 | 952c0979 | Sofia Papagiannaki | 'url': 'https://node2.example.com/ui/', |
199 | 952c0979 | Sofia Papagiannaki | 'resources':[{
|
200 | 952c0979 | Sofia Papagiannaki | 'name':'diskspace', |
201 | 1f3ad141 | Sofia Papagiannaki | 'group':'storage', |
202 | 952c0979 | Sofia Papagiannaki | 'uplimit':5 * 1024 * 1024 * 1024, |
203 | 952c0979 | Sofia Papagiannaki | 'unit':'bytes', |
204 | 952c0979 | Sofia Papagiannaki | 'desc': 'Pithos account diskspace' |
205 | 952c0979 | Sofia Papagiannaki | }] |
206 | 952c0979 | Sofia Papagiannaki | } |
207 | 952c0979 | Sofia Papagiannaki | }) |
208 | 8cc49f4d | Sofia Papagiannaki | |
209 | 8cc49f4d | Sofia Papagiannaki | # Set the billing URI
|
210 | 8cc49f4d | Sofia Papagiannaki | AQUARIUM_URL = getattr(settings, 'ASTAKOS_AQUARIUM_URL', '') |
211 | 8cc49f4d | Sofia Papagiannaki | |
212 | d220292f | Sofia Papagiannaki | # Set how many objects should be displayed per page
|
213 | f46c95c4 | Sofia Papagiannaki | PAGINATE_BY = getattr(settings, 'ASTAKOS_PAGINATE_BY', 8) |
214 | f46c95c4 | Sofia Papagiannaki | |
215 | 59728d4e | Olga Brani | # Set how many objects should be displayed per page in show all groups page
|
216 | 59728d4e | Olga Brani | PAGINATE_BY_ALL = getattr(settings, 'ASTAKOS_PAGINATE_BY_ALL', 15) |
217 | 59728d4e | Olga Brani | |
218 | f46c95c4 | Sofia Papagiannaki | # Enforce token renewal on password change/reset
|
219 | f46c95c4 | Sofia Papagiannaki | NEWPASSWD_INVALIDATE_TOKEN = getattr(
|
220 | cd1e1513 | root | settings, 'ASTAKOS_NEWPASSWD_INVALIDATE_TOKEN', True) |
221 | 3cbd5e47 | Olga Brani | |
222 | 3cbd5e47 | Olga Brani | |
223 | 3cbd5e47 | Olga Brani | RESOURCES_PRESENTATION_DATA = getattr(
|
224 | 3cbd5e47 | Olga Brani | settings, 'ASTAKOS_RESOURCES_PRESENTATION_DATA', {
|
225 | 3cbd5e47 | Olga Brani | 'groups': {
|
226 | 3cbd5e47 | Olga Brani | 'compute': {
|
227 | 67be1883 | Olga Brani | 'help_text':'Compute resources (amount of VMs, CPUs, RAM, System disk) ', |
228 | 3cbd5e47 | Olga Brani | 'is_abbreviation':False, |
229 | 3cbd5e47 | Olga Brani | 'report_desc':'', |
230 | a2214bd1 | Kostas Papadimitriou | 'verbose_name':'compute', |
231 | 3cbd5e47 | Olga Brani | }, |
232 | 3cbd5e47 | Olga Brani | 'storage': {
|
233 | 67be1883 | Olga Brani | 'help_text':'Storage resources (amount of space to store files on Pithos) ', |
234 | 3cbd5e47 | Olga Brani | 'is_abbreviation':False, |
235 | 3cbd5e47 | Olga Brani | 'report_desc':'', |
236 | a2214bd1 | Kostas Papadimitriou | 'verbose_name':'storage', |
237 | 3cbd5e47 | Olga Brani | }, |
238 | 67be1883 | Olga Brani | 'network': {
|
239 | 67be1883 | Olga Brani | 'help_text':' Network resources (amount of Private Networks) ', |
240 | 67be1883 | Olga Brani | 'is_abbreviation':False, |
241 | 67be1883 | Olga Brani | 'report_desc':'', |
242 | 67be1883 | Olga Brani | 'verbose_name':'network', |
243 | 67be1883 | Olga Brani | }, |
244 | 3cbd5e47 | Olga Brani | }, |
245 | 3cbd5e47 | Olga Brani | 'resources': {
|
246 | 3cbd5e47 | Olga Brani | 'pithos+.diskspace': {
|
247 | 67be1883 | Olga Brani | 'help_text':'This is the space on Pithos for storing files and VM Images. ', |
248 | 67be1883 | Olga Brani | 'help_text_input_each':'This is the total amount of space on Pithos that will be granted to each user of this Project ', |
249 | 3cbd5e47 | Olga Brani | 'is_abbreviation':False, |
250 | 2db258bf | Olga Brani | 'report_desc':'Storage Space', |
251 | 3cbd5e47 | Olga Brani | 'placeholder':'eg. 10GB', |
252 | 67be1883 | Olga Brani | 'verbose_name':'Storage Space', |
253 | 3cbd5e47 | Olga Brani | }, |
254 | 3cbd5e47 | Olga Brani | 'cyclades.disk': {
|
255 | 67be1883 | Olga Brani | 'help_text':'This is the System Disk that the VMs have that run the OS ', |
256 | 67be1883 | Olga Brani | 'help_text_input_each':"This is the total amount of System Disk that will be granted to each user of this Project (this refers to the total System Disk of all VMs, not each VM's System Disk) ", |
257 | 3cbd5e47 | Olga Brani | 'is_abbreviation':False, |
258 | 2db258bf | Olga Brani | 'report_desc':'System Disk', |
259 | 3cbd5e47 | Olga Brani | 'placeholder':'eg. 5GB, 2GB etc', |
260 | 67be1883 | Olga Brani | 'verbose_name':'System Disk' |
261 | 3cbd5e47 | Olga Brani | }, |
262 | 3cbd5e47 | Olga Brani | 'cyclades.ram': {
|
263 | 67be1883 | Olga Brani | 'help_text':'RAM used by VMs ', |
264 | 67be1883 | Olga Brani | 'help_text_input_each':'This is the total amount of RAM that will be granted to each user of this Project (on all VMs) ', |
265 | 3cbd5e47 | Olga Brani | 'is_abbreviation':True, |
266 | 3cbd5e47 | Olga Brani | 'report_desc':'RAM', |
267 | 3cbd5e47 | Olga Brani | 'placeholder':'eg. 4GB', |
268 | 3cbd5e47 | Olga Brani | 'verbose_name':'ram' |
269 | 3cbd5e47 | Olga Brani | }, |
270 | 3cbd5e47 | Olga Brani | 'cyclades.cpu': {
|
271 | 67be1883 | Olga Brani | 'help_text':'CPUs used by VMs ', |
272 | 67be1883 | Olga Brani | 'help_text_input_each':'This is the total number of CPUs that will be granted to each user of this Project (on all VMs) ', |
273 | 3cbd5e47 | Olga Brani | 'is_abbreviation':True, |
274 | 3cbd5e47 | Olga Brani | 'report_desc':'CPUs', |
275 | 3cbd5e47 | Olga Brani | 'placeholder':'eg. 1', |
276 | 3cbd5e47 | Olga Brani | 'verbose_name':'cpu' |
277 | 3cbd5e47 | Olga Brani | }, |
278 | e2497bc5 | Sofia Papagiannaki | 'cyclades.vm': {
|
279 | e2497bc5 | Sofia Papagiannaki | 'help_text':'These are the VMs one can create on the Cyclades UI ', |
280 | e2497bc5 | Sofia Papagiannaki | 'help_text_input_each':'This is the total number of VMs that will be granted to each user of this Project ', |
281 | e2497bc5 | Sofia Papagiannaki | 'is_abbreviation':True, |
282 | e2497bc5 | Sofia Papagiannaki | 'report_desc':'Virtual Machines', |
283 | e2497bc5 | Sofia Papagiannaki | 'placeholder':'eg. 2', |
284 | e2497bc5 | Sofia Papagiannaki | 'verbose_name':'vm', |
285 | e2497bc5 | Sofia Papagiannaki | }, |
286 | 3cbd5e47 | Olga Brani | 'cyclades.network.private': {
|
287 | 67be1883 | Olga Brani | 'help_text':'These are the Private Networks one can create on the Cyclades UI. ', |
288 | 67be1883 | Olga Brani | 'help_text_input_each':'This is the total number of Private Networks that will be granted to each user of this Project ', |
289 | 3cbd5e47 | Olga Brani | 'is_abbreviation':False, |
290 | 2db258bf | Olga Brani | 'report_desc':'Private Networks', |
291 | 3cbd5e47 | Olga Brani | 'placeholder':'eg. 1', |
292 | 3cbd5e47 | Olga Brani | 'verbose_name':'private network' |
293 | 3cbd5e47 | Olga Brani | } |
294 | a2214bd1 | Kostas Papadimitriou | |
295 | 3cbd5e47 | Olga Brani | } |
296 | a2214bd1 | Kostas Papadimitriou | |
297 | 3cbd5e47 | Olga Brani | }) |
298 | ef20ea07 | Sofia Papagiannaki | |
299 | ef20ea07 | Sofia Papagiannaki | # Permit local account migration
|
300 | f366e3ed | Olga Brani | ENABLE_LOCAL_ACCOUNT_MIGRATION = getattr(settings, 'ASTAKOS_ENABLE_LOCAL_ACCOUNT_MIGRATION', True) |
301 | 1d59653f | Kostas Papadimitriou | |
302 | 1d59653f | Kostas Papadimitriou | # Strict shibboleth usage
|
303 | 1d59653f | Kostas Papadimitriou | SHIBBOLETH_REQUIRE_NAME_INFO = getattr(settings,
|
304 | 1d59653f | Kostas Papadimitriou | 'ASTAKOS_SHIBBOLETH_REQUIRE_NAME_INFO',
|
305 | 1d59653f | Kostas Papadimitriou | False)
|
306 | 272cf735 | Sofia Papagiannaki | |
307 | 272cf735 | Sofia Papagiannaki | PROJECT_MEMBER_JOIN_POLICIES = getattr(settings,
|
308 | 272cf735 | Sofia Papagiannaki | 'ASTAKOS_PROJECT_MEMBER_JOIN_POLICIES',
|
309 | 272cf735 | Sofia Papagiannaki | {1:'automatically accepted by the system', |
310 | 272cf735 | Sofia Papagiannaki | 2:'accepted by the owner of the project', |
311 | 272cf735 | Sofia Papagiannaki | 3:'members can not join the project'}) |
312 | 272cf735 | Sofia Papagiannaki | |
313 | 272cf735 | Sofia Papagiannaki | PROJECT_MEMBER_LEAVE_POLICIES = getattr(settings,
|
314 | 272cf735 | Sofia Papagiannaki | 'ASTAKOS_PROJECT_MEMBER_LEAVE_POLICIES',
|
315 | 272cf735 | Sofia Papagiannaki | {1:'automatically accepted by the system', |
316 | 272cf735 | Sofia Papagiannaki | 2:'accepted by the owner of the project', |
317 | 272cf735 | Sofia Papagiannaki | 3:'members can not leave the project'}) |