Revision 5ce3ce4f snf-astakos-app/astakos/im/settings.py
b/snf-astakos-app/astakos/im/settings.py | ||
---|---|---|
11 | 11 |
DEFAULT_USER_LEVEL = getattr(settings, 'ASTAKOS_DEFAULT_USER_LEVEL', 4) |
12 | 12 |
|
13 | 13 |
INVITATIONS_PER_LEVEL = getattr(settings, 'ASTAKOS_INVITATIONS_PER_LEVEL', { |
14 |
0 : 100,
|
|
15 |
1 : 2,
|
|
16 |
2 : 0,
|
|
17 |
3 : 0,
|
|
18 |
4 : 0
|
|
14 |
0: 100,
|
|
15 |
1: 2,
|
|
16 |
2: 0,
|
|
17 |
3: 0,
|
|
18 |
4: 0
|
|
19 | 19 |
}) |
20 | 20 |
|
21 | 21 |
# Address to use for outgoing emails |
22 |
DEFAULT_CONTACT_EMAIL = getattr(settings, 'ASTAKOS_DEFAULT_CONTACT_EMAIL', 'support@cloud.grnet.gr') |
|
22 |
DEFAULT_CONTACT_EMAIL = getattr( |
|
23 |
settings, 'ASTAKOS_DEFAULT_CONTACT_EMAIL', 'support@cloud.grnet.gr') |
|
23 | 24 |
|
24 | 25 |
# Identity Management enabled modules |
25 | 26 |
IM_MODULES = getattr(settings, 'ASTAKOS_IM_MODULES', ['local', 'shibboleth']) |
... | ... | |
48 | 49 |
# Set recaptcha keys |
49 | 50 |
RECAPTCHA_PUBLIC_KEY = getattr(settings, 'ASTAKOS_RECAPTCHA_PUBLIC_KEY', '') |
50 | 51 |
RECAPTCHA_PRIVATE_KEY = getattr(settings, 'ASTAKOS_RECAPTCHA_PRIVATE_KEY', '') |
51 |
RECAPTCHA_OPTIONS = getattr(settings, 'ASTAKOS_RECAPTCHA_OPTIONS',
|
|
52 |
{'theme' : 'custom', 'custom_theme_widget': 'okeanos_recaptcha'})
|
|
52 |
RECAPTCHA_OPTIONS = getattr(settings, 'ASTAKOS_RECAPTCHA_OPTIONS', |
|
53 |
{'theme': 'custom', 'custom_theme_widget': 'okeanos_recaptcha'}) |
|
53 | 54 |
RECAPTCHA_USE_SSL = getattr(settings, 'ASTAKOS_RECAPTCHA_USE_SSL', True) |
54 | 55 |
RECAPTCHA_ENABLED = getattr(settings, 'ASTAKOS_RECAPTCHA_ENABLED', True) |
55 | 56 |
|
... | ... | |
57 | 58 |
BILLING_FIELDS = getattr(settings, 'ASTAKOS_BILLING_FIELDS', ['is_active']) |
58 | 59 |
|
59 | 60 |
# Queue for billing. |
60 |
QUEUE_CONNECTION = getattr(settings, 'ASTAKOS_QUEUE_CONNECTION', None) # Example: 'rabbitmq://guest:guest@localhost:5672/astakos' |
|
61 |
QUEUE_CONNECTION = getattr(settings, 'ASTAKOS_QUEUE_CONNECTION', None) # Example: 'rabbitmq://guest:guest@localhost:5672/astakos'
|
|
61 | 62 |
|
62 | 63 |
# Set where the user should be redirected after logout |
63 | 64 |
LOGOUT_NEXT = getattr(settings, 'ASTAKOS_LOGOUT_NEXT', '') |
64 | 65 |
|
65 | 66 |
# Set user email patterns that are automatically activated |
66 |
RE_USER_EMAIL_PATTERNS = getattr(settings, 'ASTAKOS_RE_USER_EMAIL_PATTERNS', []) |
|
67 |
RE_USER_EMAIL_PATTERNS = getattr( |
|
68 |
settings, 'ASTAKOS_RE_USER_EMAIL_PATTERNS', []) |
|
67 | 69 |
|
68 | 70 |
# Messages to display on login page header |
69 | 71 |
# e.g. {'warning': 'This warning message will be displayed on the top of login page'} |
... | ... | |
86 | 88 |
PROFILE_EXTRA_LINKS = getattr(settings, 'ASTAKOS_PROFILE_EXTRA_LINKS', {}) |
87 | 89 |
|
88 | 90 |
# The number of unsuccessful login requests per minute allowed for a specific user |
89 |
RATELIMIT_RETRIES_ALLOWED = getattr(settings, 'ASTAKOS_RATELIMIT_RETRIES_ALLOWED', 3) |
|
91 |
RATELIMIT_RETRIES_ALLOWED = getattr( |
|
92 |
settings, 'ASTAKOS_RATELIMIT_RETRIES_ALLOWED', 3) |
|
90 | 93 |
|
91 | 94 |
# If False the email change mechanism is disabled |
92 | 95 |
EMAILCHANGE_ENABLED = getattr(settings, 'ASTAKOS_EMAILCHANGE_ENABLED', False) |
93 | 96 |
|
94 | 97 |
# Set the expiration time (in days) of email change requests |
95 |
EMAILCHANGE_ACTIVATION_DAYS = getattr(settings, 'ASTAKOS_EMAILCHANGE_ACTIVATION_DAYS', 10) |
|
98 |
EMAILCHANGE_ACTIVATION_DAYS = getattr( |
|
99 |
settings, 'ASTAKOS_EMAILCHANGE_ACTIVATION_DAYS', 10) |
|
96 | 100 |
|
97 | 101 |
# Set the astakos main functions logging severity (None to disable) |
98 | 102 |
from logging import INFO |
Also available in: Unified diff