X-Git-Url: https://code.grnet.gr/git/pithos/blobdiff_plain/6511403208d6b8cabbc9d1abe9485520597df974..bee5ffa6f73770e97579db6bbc4b25641c83841a:/pithos/settings.py.dist diff --git a/pithos/settings.py.dist b/pithos/settings.py.dist index 0cfc314..df3c426 100644 --- a/pithos/settings.py.dist +++ b/pithos/settings.py.dist @@ -60,11 +60,6 @@ DATABASES = { # The backend to use and its initilization options. -# Simple. -#backend_path = os.path.join(PROJECT_PATH, 'data/pithos/') -#backend_db = os.path.join(PROJECT_PATH, 'data/pithos/db') -#BACKEND = ('SimpleBackend', (backend_path, backend_db)) - # Modular. backend_module = 'pithos.backends.lib.sqlite' backend_path = os.path.join(PROJECT_PATH, 'data/pithos/') @@ -74,9 +69,7 @@ backend_db = os.path.join(PROJECT_PATH, 'data/pithos/db') #backend_db = 'postgresql://user:pass@host/db' BACKEND = ('ModularBackend', (backend_module, backend_path, backend_db)) -# Shibboleth-enabled path for authentication. -LOGIN_URL = "/login" - +# Bypass authentication for user administration. BYPASS_ADMIN_AUTH = False # Local time zone for this installation. Choices can be found here: @@ -152,17 +145,64 @@ INSTALLED_APPS = ( # 'django.contrib.messages', # 'django.contrib.admin', # 'django.contrib.admindocs', - 'pithos.aai', - 'pithos.admin', + 'pithos.im', 'pithos.api', - 'pithos.public' + 'pithos.public', + 'pithos.ui' ) # Set the expiration time of newly created auth tokens # to be this many hours after their creation time. AUTH_TOKEN_DURATION = 30 * 24 -# Default quota for new users. -DEFAULT_QUOTA = 10 * 1024 * 1024 * 1024 +# Default setting for new accounts. +DEFAULT_QUOTA = 50 * 1024 * 1024 * 1024 +DEFAULT_VERSIONING = 'auto' +# Show these many users per page in admin interface. ADMIN_PAGE_LIMIT = 100 + +# Authenticate via Twitter. +TWITTER_KEY = '' +TWITTER_SECRET = '' + +# Address to use for outgoing emails +DEFAULT_FROM_EMAIL = 'Pithos ' +FEEDBACK_FROM_EMAIL = DEFAULT_FROM_EMAIL +FEEDBACK_CONTACT_EMAIL = 'support@pithos.grnet.gr' + +INVITATIONS_PER_LEVEL = { + 0 : 100, + 1 : 2, + 2 : 0, + 3 : 0, + 4 : 0 +} + +BASE_URL = '' + +SERVICE_NAME = 'Pithos+' + +SUPPORT_EMAIL = '' + +# Where users should login with their invitation code +INVITATION_LOGIN_TARGET = 'https://pithos.dev.grnet.gr/im/login/invitation' \ + '?code=%d' \ + '&next=https://pithos.dev.grnet.gr/ui' + +# Where users should activate their local account +ACTIVATION_LOGIN_TARGET = BASEPATH + 'im/login/local/activate/' \ + '?auth=%s' \ + '&next=' + BASE_URL + 'im/login' + +# Where users should reset their local password +PASSWORD_RESET_TARGET = BASE_URL + 'im/login/local/reset/' \ + '?auth=%s' \ + '&next=' + BASE_URL + 'im/login?next=' + BASE_URL + 'ui' + + +# The server is behind a proy (apache and gunicorn setup). +USE_X_FORWARDED_HOST = False + +# Use to log to a file. +LOGFILE = None