debian: enable memcache by default and update configuration file

This commit is contained in:
Jérôme Schneider 2013-08-28 14:43:48 +02:00
parent 84813e197d
commit 614529f5aa
2 changed files with 24 additions and 1 deletions

View File

@ -3,6 +3,13 @@
export DATABASE_ENGINE='django.db.backends.sqlite3'
export DATABASE_NAME='/var/lib/compte-agglo-montpellier/compte-agglo-montpellier.db'
# Debug
#export DEBUG=yes
# Define administrators / managers
export ADMINS='admin eo;admin@entrouvert.com'
# Static root directory
export STATIC_ROOT='/var/lib/compte-agglo-montpellier/static'
@ -15,6 +22,20 @@ export SECRET_KEY='changeme'
# We are behind a reverse proxy so we accept every hosts
export ALLOWED_HOSTS='*'
# Configure Django cache
export CACHE_BACKEND='{"BACKEND": "django.core.cache.backends.memcached.MemcachedCache", "LOCATION": "127.0.0.1:11211"}'
# SMS url
export PORTAIL_CITOYEN_SMS_URL='https://passerelle.montpellier-agglo.com/message/sms/json'
# Email configuration
#EMAIL_HOST = 'localhost'
#EMAIL_PORT = 25
#EMAIL_SUBJECT_PREFIX = '[Compte Montpellier Prod]'
#SERVER_EMAIL = 'root@compte-montpellier.montpellier-agglo.com'
#DEFAULT_FROM_EMAIL = 'e-services@montpellier-agglo.com'
# You MUST set RSA key here
# you can generate this key with this commands :
# openssl genrsa -out saml.key 2048
@ -23,7 +44,7 @@ export ALLOWED_HOSTS='*'
#export SAML_SIGNATURE_PRIVATE_KEY=""
# Enables some features
#export IDP_SAML2='yes'
export IDP_SAML2='yes'
#export IDP_OPENID='yes'
#export IDP_CAS='yes'
#export AUTH_SAML2='yes'

2
debian/control vendored
View File

@ -18,6 +18,8 @@ Depends: ${misc:Depends},
python-cmsplugin-embedded-menu,
python-cmsplugin-text-wrapper,
rsyslog | syslog-ng | dsyslog | busybox-syslogd | inetutils-syslogd,
memcached,
python-memcache,
gunicorn (>= 0.14)
Description: Compte agglo montpellier