Revision 61ae9b74 snf-pithos-app/pithos/api/settings.py

b/snf-pithos-app/pithos/api/settings.py
15 15
    '0009': 'διογένης'
16 16
}
17 17

  
18
# Set PROXY_USER_SERVICES to True to have snf-pithos-app handle all Astakos
19
# user-visible services (feedback, login, etc.) by proxying them to a running
20
# Astakos.
21
# Set to False if snf astakos-app is running on the same machine, so it handles
22
# the requests on its own.
23
PROXY_USER_SERVICES = getattr(settings, 'PITHOS_PROXY_USER_SERVICES', True)
24

  
25
USER_CATALOG_URL = getattr(settings, 'PITHOS_USER_CATALOG_URL',
26
                           'https://<astakos.host>/user_catalogs/')
27
USER_FEEDBACK_URL = getattr(settings, 'PITHOS_USER_FEEDBACK_URL',
28
                            'https://<astakos.host>/feedback/')
29
USER_LOGIN_URL = getattr(settings, 'PITHOS_USER_LOGIN_URL',
30
                         'https://<astakos.host>/login/')
31 18
AUTHENTICATION_URL = getattr(settings, 'PITHOS_AUTHENTICATION_URL',
32 19
                             'https://<astakos.host>/im/authenticate/')
33 20
AUTHENTICATION_USERS = getattr(settings, 'PITHOS_AUTHENTICATION_USERS', {})
34 21

  
35
TRANSLATE_UUIDS = getattr(settings, 'PITHOS_TRANSLATE_UUIDS', False)
36

  
37 22
COOKIE_NAME = getattr(settings, 'ASTAKOS_COOKIE_NAME', '_pithos2_a')
38 23

  
39 24
# SQLAlchemy (choose SQLite/MySQL/PostgreSQL).
......
61 46
BACKEND_VERSIONING = getattr(settings, 'PITHOS_BACKEND_VERSIONING', 'auto')
62 47
BACKEND_FREE_VERSIONING = getattr(settings, 'PITHOS_BACKEND_FREE_VERSIONING', True)
63 48

  
64
# Set the quota holder component URI
65
QUOTAHOLDER_URL = getattr(settings, 'PITHOS_QUOTAHOLDER_URL', '')
66
QUOTAHOLDER_TOKEN = getattr(settings, 'PITHOS_QUOTAHOLDER_TOKEN', '')
67

  
68 49
# Update object checksums when using hashmaps.
69 50
UPDATE_MD5 = getattr(settings, 'PITHOS_UPDATE_MD5', True)
70 51

  
......
74 55
RADOS_STORAGE = getattr(settings, 'PITHOS_RADOS_STORAGE', False)
75 56
RADOS_POOL_BLOCKS= getattr(settings, 'PITHOS_RADOS_POOL_BLOCKS', 'blocks')
76 57
RADOS_POOL_MAPS = getattr(settings, 'PITHOS_RADOS_POOL_MAPS', 'maps')
58

  
59
# This enables a ui compatibility layer for the introduction of UUIDs in
60
# identity management.  WARNING: Setting to True will break your installation.
61
TRANSLATE_UUIDS = getattr(settings, 'PITHOS_TRANSLATE_UUIDS', False)
62

  
63
# Set PROXY_USER_SERVICES to True to have snf-pithos-app handle all Astakos
64
# user-visible services (feedback, login, etc.) by proxying them to a running
65
# Astakos.
66
# Set to False if snf astakos-app is running on the same machine, so it handles
67
# the requests on its own.
68
PROXY_USER_SERVICES = getattr(settings, 'PITHOS_PROXY_USER_SERVICES', True)
69

  
70
USER_CATALOG_URL = getattr(settings, 'PITHOS_USER_CATALOG_URL',
71
                           'https://<astakos.host>/user_catalogs/')
72
USER_FEEDBACK_URL = getattr(settings, 'PITHOS_USER_FEEDBACK_URL',
73
                            'https://<astakos.host>/feedback/')
74
USER_LOGIN_URL = getattr(settings, 'PITHOS_USER_LOGIN_URL',
75
                         'https://<astakos.host>/login/')
76

  
77
# Set the quota holder component URI
78
USE_QUOTAHOLDER = getattr(settings, 'PITHOS_USE_QUOTAHOLDER', True)
79
QUOTAHOLDER_URL = getattr(settings, 'PITHOS_QUOTAHOLDER_URL', '')
80
QUOTAHOLDER_TOKEN = getattr(settings, 'PITHOS_QUOTAHOLDER_TOKEN', '')

Also available in: Unified diff