55 lines
1.4 KiB
Python
55 lines
1.4 KiB
Python
import logging
|
|
|
|
## Virtual hosts configuration
|
|
hosts = {
|
|
'archimed.montpellier.entrouvert.org': [
|
|
{'path': r'/',
|
|
'target': 'http://ermes2.montpellier-agglo.com',
|
|
'mapping': 'cam.configs.archimed_saml.archimed_mapping'
|
|
},
|
|
],
|
|
}
|
|
|
|
## SQL Backend config
|
|
# http://docs.sqlalchemy.org/en/rel_0_7/core/engines.html
|
|
# rfc 1738 https://tools.ietf.org/html/rfc1738
|
|
# dialect+driver://username:password@host:port/database
|
|
db_url = 'sqlite:///var/lib/mandaye-cam/cam.db'
|
|
|
|
## Logging configuration
|
|
debug = False
|
|
log_file = '/var/log/mandaye-cam/mandaye.log'
|
|
log_level = logging.INFO
|
|
|
|
## PATH
|
|
# Static url
|
|
static_url = '/static'
|
|
# Static folder
|
|
static_root = '/usr/share/mandaye-cam/static'
|
|
# Data directory
|
|
data_dir = '/var/lib/mandaye-cam/data'
|
|
|
|
## Email notification configuration
|
|
email_notification = True
|
|
smtp_host = 'localhost'
|
|
smtp_port = 25
|
|
email_from = 'admin+mandaye-cam@entrouvert.com'
|
|
email_to = ['admin+mandaye-cam@entrouvert.com']
|
|
|
|
|
|
## Session configuration
|
|
# http://beaker.readthedocs.org/en/latest/configuration.html#options-for-sessions-and-caching
|
|
session_opts = {
|
|
'session.type': 'file',
|
|
'session.cookie_expires': True,
|
|
'session.timeout': 3600,
|
|
'session.data_dir': '/var/lib/mandaye-cam/sessions'
|
|
}
|
|
|
|
## Encrypt service provider passwords with a secret
|
|
# You should install pycypto to use this feature
|
|
encrypt_sp_password = True
|
|
# Must be a 16, 24, or 32 bytes long
|
|
encrypt_secret = 'CHANGEME'
|
|
|