20-im.conf 984 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Set the expiration time of newly created auth tokens
# to be this many hours after their creation time.
AUTH_TOKEN_DURATION = 30 * 24

# Bypass authentication for user administration.
BYPASS_ADMIN_AUTH = False

# Show these many users per page in admin interface.
ADMIN_PAGE_LIMIT = 100

# Authenticate via Twitter.
TWITTER_KEY = ''
TWITTER_SECRET = ''

Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
15
16
DEFAULT_USER_LEVEL = 4

17
18
19
20
21
22
23
24
25
INVITATIONS_PER_LEVEL = {
    0   :   100,
    1   :   2,
    2   :   0,
    3   :   0,
    4   :   0
}

# Address to use for outgoing emails
26
27
DEFAULT_FROM_EMAIL = '%s <no-reply@grnet.gr>'
DEFAULT_CONTACT_EMAIL = 'support@%s.grnet.gr'
28
29
30
31
32

# Identity Management enabled modules
IM_MODULES = ['local', 'twitter', 'shibboleth']

# Force user profile verification
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
33
FORCE_PROFILE_UPDATE = True
34
35

#Enable invitations
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
36
37
38
INVITATIONS_ENABLED = True

# The URL where requests are redirected for login, especially when using the login_required() decorator.
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
39
40
41
42
LOGIN_URL = '/im'

COOKIE_NAME = '_pithos2_a'
COOKIE_DOMAIN = None