# Set the expiration time of newly created auth tokens
# to be this many hours after their creation time.
#ASTAKOS_AUTH_TOKEN_DURATION = 30 * 24

#ASTAKOS_DEFAULT_USER_LEVEL = 4

#ASTAKOS_INVITATIONS_PER_LEVEL = {
#    0   :   100,
#    1   :   2,
#    2   :   0,
#    3   :   0,
#    4   :   0
#}

# Identity Management enabled modules
# Supported modules are: 'local', 'twitter' and 'shibboleth'
#ASTAKOS_IM_MODULES = ['local']

# Force user profile verification
#ASTAKOS_FORCE_PROFILE_UPDATE = True

#Enable invitations
#ASTAKOS_INVITATIONS_ENABLED = False

#ASTAKOS_COOKIE_NAME = '_pithos2_a'
#ASTAKOS_COOKIE_DOMAIN = None
#ASTAKOS_COOKIE_SECURE = True

#ASTAKOS_IM_STATIC_URL = '/static/im/'

# If set to False and invitations not enabled newly created user will be 
# automatically accepted
#ASTAKOS_MODERATION_ENABLED = True

# Set baseurl
#ASTAKOS_BASEURL = 'https://accounts.example.synnefo.org'

# Set service name
#ASTAKOS_SITENAME = 'Synnefo Cloud'

# Set recaptcha keys
# http://www.google.com/recaptcha/whyrecaptcha 
#ASTAKOS_RECAPTCHA_PUBLIC_KEY = ''
#ASTAKOS_RECAPTCHA_PRIVATE_KEY = ''
#ASTAKOS_RECAPTCHA_OPTIONS = {'theme': 'custom', 'custom_theme_widget': 'okeanos_recaptcha'}
#ASTAKOS_RECAPTCHA_USE_SSL = True
#ASTAKOS_RECAPTCHA_ENABLED = False

# Set where the user should be redirected after logout
#ASTAKOS_LOGOUT_NEXT = ''

# Set user email patterns that are automatically activated
#ASTAKOS_RE_USER_EMAIL_PATTERNS = []

# Messages to display on login page header
# e.g. [('warning', 'This warning message will be displayed on the top of login page')]
#ASTAKOS_LOGIN_MESSAGES = []

# Messages to display on signup page header
# e.g. [('warning', 'This warning message will be displayed on the top of signup page')]
#ASTAKOS_SIGNUP_MESSAGES = []

# Messages to display on profile page header
# e.g. [('warning', 'This warning message will be displayed on the top of profile pages')]
#ASTAKOS_PROFILE_MESSAGES = []

# Messages to display on global page header
# e.g. [('warning', 'This warning message will be displayed on the top of all pages')]
#ASTAKOS_GLOBAL_MESSAGES = []

# messages to display as extra actions in account forms
# e.g. {'https://cms.example.synnefo.org/': 'Back to Synnefo'}
#ASTAKOS_PROFILE_EXTRA_LINKS = []

# The number of unsuccessful login requests per minute allowed for a specific email
#ASTAKOS_RATELIMIT_RETRIES_ALLOWED = 3

# If False the email change mechanism is disabled
#ASTAKOS_EMAILCHANGE_ENABLED = False

# Set the expiration time (in days) of email change requests
#ASTAKOS_EMAILCHANGE_ACTIVATION_DAYS = 10

# Set the astakos main functions logging severity (None to disable)
#from logging import INFO
#ASTAKOS_LOGGING_LEVEL = INFO

# Email subjects configuration. For admin/helper notification emails %(user)s
# maps to registered/activated user email.
#ASTAKOS_INVITATION_EMAIL_SUBJECT = 'Invitation to %s alpha2 testing' % SITENAME
#ASTAKOS_GREETING_EMAIL_SUBJECT = 'Welcome to %s alpha2 testing' % SITENAME
#ASTAKOS_FEEDBACK_EMAIL_SUBJECT = 'Feedback from %s alpha2 testing' % SITENAME
#ASTAKOS_VERIFICATION_EMAIL_SUBJECT = '%s alpha2 testing account activation is needed' % SITENAME
#ASTAKOS_ACCOUNT_CREATION_SUBJECT = '%s alpha2 testing account created (%%(user)s)' % SITENAME)
#ASTAKOS_GROUP_CREATION_SUBJECT = '%s alpha2 testing group created (%%(group)s)' % SITENAME)
#ASTAKOS_HELPDESK_NOTIFICATION_EMAIL_SUBJECT = '%s alpha2 testing account activated (%%(user)s)' % SITENAME
#ASTAKOS_EMAIL_CHANGE_EMAIL_SUBJECT = 'Email change on %s alpha2 testing' % SITENAME
#ASTAKOS_PASSWORD_RESET_EMAIL_SUBJECT = 'Password reset on %s alpha2 testing' % SITENAME
#ASTAKOS_PROJECT_CREATION_SUBJECT = '%s alpha2 testing project application created (%%(name)s)' % SITENAME
#ASTAKOS_PROJECT_APPROVED_SUBJECT = '%s alpha2 testing project application approved (%%(name)s)' % SITENAME
#ASTAKOS_PROJECT_TERMINATION_SUBJECT = '%s alpha2 testing project terminated (%%(name)s)' % SITENAME
#ASTAKOS_PROJECT_SUSPENSION_SUBJECT = '%s alpha2 testing project suspended (%%(name)s)' % SITENAME
#ASTAKOS_PROJECT_MEMBERSHIP_CHANGE_SUBJECT = '%s alpha2 testing project membership changed (%%(name)s)' % SITENAME

# Set the quotaholder component URI and token
#ASTAKOS_QUOTAHOLDER_URL = ''
#ASTAKOS_QUOTAHOLDER_TOKEN = ''
#
# Tune the size of the quotaholder http client connection pool.
# This limits the number of concurrent requests to quotaholder.
# If quotaholder is installed in the same system as astakos,
# This must be at most half the synnefo_poolsize for the django database
#ASTAKOS_QUOTAHOLDER_POOLSIZE = 50

# Setup quotaholder URL and token when snf-quotaholder-app is installed
# in the same server as astakos (recommended)
#QUOTAHOLDER_URL = ''
#QUOTAHOLDER_TOKEN = ''

# Set the cloud service properties
#ASTAKOS_SERVICES = {
#    'cyclades': {
##        # Specifying the key 'url' will overwrite it.
##        # Use this to (re)set service URL.
##        'url': 'https://cyclades.example.synnefo.org/ui/',
##        # order services in listings, cloudbar, etc.
##        'order' : 1,
#        'resources': [{
#            'name': 'disk',
#            'group': 'compute',
#            'uplimit': 30*1024*1024*1024,
#            'unit': 'bytes',
#            'desc': 'Virtual machine disk size'
#            }, {
#            'name': 'cpu',
#            'group': 'compute',
#            'uplimit': 6,
#            'desc': 'Number of virtual machine processors'
#            }, {
#            'name': 'ram',
#            'group': 'compute',
#            'uplimit': 6*1024*1024*1024,
#            'unit': 'bytes',
#            'desc': 'Virtual machine memory size'
#            }, {
#            'name': 'vm',
#            'group': 'compute',
#            'uplimit': 2,
#            'desc': 'Number of virtual machines'
#            }, {
#            'name': 'network.private',
#            'group': 'network',
#            'uplimit': 1,
#            'desc': 'Private networks'
#            }
#        ]
#    },
#    'pithos+': {
##        # Use this to (re)set service URL.
##        'url': 'https://pithos.example.synnefo.org/ui/',
##        # order services in listings, cloudbar, etc.
##        'order' : 2,
#        'resources':[{
#            'name': 'diskspace',
#            'group': 'storage',
#            'uplimit': 5*1024*1024*1024,
#            'unit': 'bytes',
#            'desc': 'Pithos account diskspace'
#            }]
#    }
#}

# Set how many objects should be displayed per page
#ASTAKOS_PAGINATE_BY = 10
# Set how many objects should be displayed per page in show all groups page
#ASTAKOS_PAGINATE_BY_ALL = 15

# Enforce token renewal on password change/reset
#ASTAKOS_NEWPASSWD_INVALIDATE_TOKEN = True

#ASTAKOS_USAGE_UPDATE_INTERVAL = 5000

#ASTAKOS_RESOURCES_PRESENTATION_DATA = {
#        'groups': {
#             'compute': {
#                'help_text':'Compute resources (amount of VMs, CPUs, RAM, System disk) ',
#                'is_abbreviation':False,
#                'report_desc':'',
#                 'verbose_name':'compute',
#            },
#            'storage': {
#                'help_text':'Storage resources (amount of space to store files on Pithos) ',
#                'is_abbreviation':False,
#                'report_desc':'',
#                 'verbose_name':'storage',
#            },
#            'network': {
#                'help_text':' Network resources (number of Private Networks)  ',
#                'is_abbreviation':False,
#                'report_desc':'',
#                'verbose_name':'network',
#            },
#        },
#        'resources': {
#            'pithos+.diskspace': {
#                'help_text':'This is the space on Pithos for storing files and VM Images. ',
#                'help_text_input_each':'This is the total amount of space on Pithos that will be granted to each user of this Project ',
#                'is_abbreviation':False,
#                'report_desc':'Storage Space',
#                'placeholder':'eg. 10GB',
#                'verbose_name':'Storage Space',
#            },
#            'cyclades.disk': {
#                'help_text':'This is the System Disk that the VMs have that run the OS ',
#                'help_text_input_each':"This is the total amount of System Disk that will be granted to each user of this Project (this refers to the total System Disk of all VMs, not each VM's System Disk)  ",
#                'is_abbreviation':False,
#                'report_desc':'System Disk',
#                'placeholder':'eg. 5GB, 2GB etc',
#                'verbose_name':'System Disk'
#            },
#            'cyclades.ram': {
#                'help_text':'RAM used by VMs ',
#                'help_text_input_each':'This is the total amount of RAM that will be granted to each user of this Project (on all VMs)  ',
#                'is_abbreviation':True,
#                'report_desc':'RAM',
#                'placeholder':'eg. 4GB',
#                'verbose_name':'ram'
#            },
#            'cyclades.cpu': {
#                'help_text':'CPUs used by VMs ',
#                'help_text_input_each':'This is the total number of CPUs that will be granted to each user of this Project (on all VMs)  ',
#                'is_abbreviation':True,
#                'report_desc':'CPUs',
#                'placeholder':'eg. 1',
#                'verbose_name':'cpu'
#            },
#            'cyclades.vm': {
#                'help_text':'These are the VMs one can create on the Cyclades UI ',
#                'help_text_input_each':'This is the total number of VMs that will be granted to each user of this Project ',
#                'is_abbreviation':True,
#                'report_desc':'Virtual Machines',
#                'placeholder':'eg. 2',
#                'verbose_name':'vm',
#            },
#            'cyclades.network.private': {
#                'help_text':'These are the Private Networks one can create on the Cyclades UI. ',
#                'help_text_input_each':'This is the total number of Private Networks that will be granted to each user of this Project ',
#                'is_abbreviation':False,
#                'report_desc':'Private Networks',
#                'placeholder':'eg. 1',
#                'verbose_name':'private network'
#            }
#
#        },
#
#        'groups_order': ['storage', 'compute', 'network'],
#        'resources_order': ['pithos+.diskspace', 'cyclades.disk',
#                            'cyclades.cpu', 'cyclades.ram', 'cyclades.vm',
#                            'cyclades.network.private']
#
#    }

# Permit local account migration
#ASTAKOS_ENABLE_LOCAL_ACCOUNT_MIGRATION = True

# Strict shibboleth usage
#ASTAKOS_SHIBBOLETH_REQUIRE_NAME_INFO = False

#ASTAKOS_ACTIVATION_REDIRECT_URL = "/im/landing"

# If true, this enables a ui compatibility layer for the introduction
# of UUIDs in identity management.
# WARNING: Setting to True will break your installation.
# ASTAKOS_TRANSLATE_UUIDS = False

# UUIDs of users that can approve or deny project applications from the web.
# ASTAKOS_PROJECT_ADMINS = set() # e.g. set(['01234567-89ab-cdef-0123-456789abcdef'])

# Maximum pending project applications per applicant.
# This is to reduce the volume of applications
# in case users abuse the mechanism.
#ASTAKOS_PENDING_APPLICATION_LIMIT = 0

# OAuth2 Twitter credentials.
#ASTAKOS_TWITTER_KEY = ''
#ASTAKOS_TWITTER_SECRET = ''
#ASTAKOS_TWITTER_AUTH_FORCE_LOGIN = False

# OAuth2 Google credentials
#ASTAKOS_GOOGLE_CLIENT_ID = ''
#ASTAKOS_GOOGLE_SECRET = ''

# OAuth2 LinkedIn credentials.
#ASTAKOS_LINKEDIN_TOKEN = ''
#ASTAKOS_LINKEDIN_SECRET = ''

# URL to redirect the user after successful login when no next parameter is set
# ASTAKOS_LOGIN_SUCCESS_URL = '/im/landing'

# Whether or not to display projects in astakos menu
# ASTAKOS_PROJECTS_VISIBLE = False
