add default-config.ini

This commit is contained in:
Jérôme Schneider 2014-06-24 19:19:53 +02:00
parent 35ae7de45a
commit 2b1d84699f
3 changed files with 50 additions and 2 deletions

View File

@ -1,4 +1,5 @@
include MANIFEST
include VERSION
include cam/default-config.ini
recursive-include cam/templates *.html
recursive-include cam/static *

View File

@ -108,7 +108,7 @@ mappers = {
}
# Raven Sentry configuration
raven_dsn = config.get('debug', 'raven_dsn')
raven_dsn = config.get('debug', 'sentry_dsn')
# Email notification configuration
email_notification = config.getboolean('email', 'notification')
@ -148,7 +148,7 @@ if session_type == 'memcached':
session_opts = {
'session.type': session_type,
'session.url': config.get('session', 'url'),
'session.cookie_expires': config.get('session', 'cookie_expires'),
'session.cookie_expires': config.getboolean('session', 'cookie_expires'),
'session.timeout': config.getint('session', 'timeout'),
'session.data_dir': config.get('session', 'data_dir')
}

47
cam/default-config.ini Normal file
View File

@ -0,0 +1,47 @@
[DEFAULT]
base_dir: .
[database]
url: sqlite:///%(base_dir)s/cam.db
[dirs]
config_root: %(base_dir)s/conf.d
data_dir: %(base_dir)s/data
static_root: %(base_dir)s/cam/static
template_directory: %(base_dir)s/cam/templates
static_url: /mandaye/static
[debug]
debug: false
use_long_trace: true
log_debug: false
; you need to install python-raven for this feature
sentry_dsn:
[mandaye]
; only sql at the moment
storage_backend: sql
auto_decompress: true
; if you want to encypt password set to true
; you need to install pycrypto for this feature
encrypt_sp_password: false
; if encrypt_sp_password then you need to choose a secret
; must be a 16, 24, or 32 bytes long
encrypt_secret:
[session]
; file, dbm, memory or memcached
; if memcached you need to install python-memcached and memcached
type: memcached
url: 127.0.0.1:11211
cookie_expires: true
timeout: 3600
data_dir: %(base_dir)s/data/beaker
[email]
notification: false
prefix: [Mandaye CAM]
smtp_host: localhost
smtp_port: 25
from: traceback@entrouvert.com
to: admin+mandaye-cam@entrouvert.com