migrate to the new version using .ini files

This commit is contained in:
Jérôme Schneider 2014-06-24 19:33:26 +02:00
parent a2eb85bcf2
commit a591c67bf5
5 changed files with 10 additions and 66 deletions

View File

@ -8,7 +8,8 @@ X-Python-Version: current
Package: mandaye-cam
Architecture: all
Depends: ${misc:Depends}, ${python:Depends},
python-mandaye (>= 0.7)
Depends: ${misc:Depends}, ${python:Depends}, memcached,
python-memcache, python-raven, python-crypto,
python-mandaye (>= 0.8)
Description: CAM is a Mandaye project, modular reverse proxy to authentic

6
dirs Normal file
View File

@ -0,0 +1,6 @@
var/lib/mandaye-cam
var/lib/mandaye-cam/data
var/lib/mandaye-cam/sessions
var/run/mandaye-cam
var/log/mandaye-cam
usr/share/mandaye-cam

View File

@ -1 +1 @@
debian/local_config.py /etc/mandaye-cam/
debian/config.ini /etc/mandaye-cam/

View File

@ -1,54 +0,0 @@
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'

9
rules
View File

@ -7,13 +7,4 @@ BUILD_DIR := 'debian/mandaye-cam'
override_dh_install:
dh_install
for ver in $(shell pyversions -vr); do \
ln -s /etc/mandaye-cam/local_config.py $(BUILD_DIR)/usr/lib/python$$ver/dist-packages/cam/; \
done
install -d -m 0755 $(BUILD_DIR)/var/lib/mandaye-cam
install -d -m 0755 $(BUILD_DIR)/var/lib/mandaye-cam/data
install -d -m 0755 $(BUILD_DIR)/var/lib/mandaye-cam/sessions
install -d -m 0755 $(BUILD_DIR)/var/run/mandaye-cam
install -d -m 0755 $(BUILD_DIR)/var/log/mandaye-cam
install -d -m 0755 $(BUILD_DIR)/usr/share/mandaye-cam
cp -R cam/static $(BUILD_DIR)/usr/share/mandaye-cam