root / astakos / settings.d / 20-im.conf @ 890b0eaf
History | View | Annotate | Download (1.3 kB)
1 |
# Set the expiration time of newly created auth tokens |
---|---|
2 |
# to be this many hours after their creation time. |
3 |
AUTH_TOKEN_DURATION = 30 * 24 |
4 |
|
5 |
# Bypass authentication for user administration. |
6 |
BYPASS_ADMIN_AUTH = False |
7 |
|
8 |
# Show these many users per page in admin interface. |
9 |
ADMIN_PAGE_LIMIT = 100 |
10 |
|
11 |
# Authenticate via Twitter. |
12 |
TWITTER_KEY = '' |
13 |
TWITTER_SECRET = '' |
14 |
|
15 |
INVITATIONS_PER_LEVEL = { |
16 |
0 : 100, |
17 |
1 : 2, |
18 |
2 : 0, |
19 |
3 : 0, |
20 |
4 : 0 |
21 |
} |
22 |
|
23 |
SERVICE_NAME = 'Astakos' |
24 |
|
25 |
# Address to use for outgoing emails |
26 |
DEFAULT_FROM_EMAIL = '%s <no-reply@grnet.gr>' %SERVICE_NAME |
27 |
DEFAULT_CONTACT_EMAIL = 'support@%s.grnet.gr' %SERVICE_NAME.lower() |
28 |
FEEDBACK_CONTACT_EMAIL = DEFAULT_CONTACT_EMAIL |
29 |
|
30 |
# Where users should signup with their invitation code |
31 |
SIGNUP_TARGET = '%s/im/signup/?code=%d&next=%s' |
32 |
|
33 |
# Where users should activate their local account |
34 |
ACTIVATION_LOGIN_TARGET = '%s/im/local/activate/?auth=%s&next=%s' |
35 |
|
36 |
## Where users should reset their local password |
37 |
#PASSWORD_RESET_TARGET = '%s/im/local/reset/?username=%s&next=%s' |
38 |
|
39 |
# Identity Management enabled modules |
40 |
IM_MODULES = ['local', 'twitter', 'shibboleth'] |
41 |
|
42 |
# Force user profile verification |
43 |
FORCE_PROFILE_UPDATE = True |
44 |
|
45 |
#Enable invitations |
46 |
INVITATIONS_ENABLED = True |
47 |
|
48 |
# The URL where requests are redirected for login, especially when using the login_required() decorator. |
49 |
LOGIN_URL = '/im' |