[Mpuls-commits] r6117 - base/trunk/mpulsweb/config

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Fri Oct 12 09:32:25 CEST 2012


Author: torsten
Date: 2012-10-12 09:32:25 +0200 (Fri, 12 Oct 2012)
New Revision: 6117

Added:
   base/trunk/mpulsweb/config/deployment.ini_tmpl
Log:
Added new deployment.ini_tmpl


Added: base/trunk/mpulsweb/config/deployment.ini_tmpl
===================================================================
--- base/trunk/mpulsweb/config/deployment.ini_tmpl	                        (rev 0)
+++ base/trunk/mpulsweb/config/deployment.ini_tmpl	2012-10-12 07:32:25 UTC (rev 6117)
@@ -0,0 +1,181 @@
+#
+# mpulsweb - Pylons development environment configuration
+#
+# The %(here)s variable will be replaced with the parent directory of this file
+#
+[DEFAULT]
+debug = True 
+#locale = 
+# Uncomment and replace with the address which should receive any error reports
+#email_to = you at yourdomain.com
+smtp_server = localhost
+error_email_from = paste at localhost
+
+# set this to 'false' if you do not want the application
+# to handle static content.
+serve_static = true
+
+# Name of the application
+mpuls.app.title = "MPULS DISTRUBUTION"
+mpuls.app.name = "MPULS DISTRIBUTION (Default)"
+
+# The application can run in dfferet setups (evaluation, production, demo etc.)
+# Name the setup here.
+mpuls.app.setupname=develop
+
+# Configure root of the application.
+mpuls.app.root=%(here)s/../../application
+
+# What is the name of the application instance. This is the name of the
+# directory containing the instance specific controller, templates and model.
+mpuls.app.instance=waskoweb
+# Which controller should be the entry point of the appliction?
+mpuls.app.indexcontroller=mpuls
+
+# installation specific search paths
+mpuls.app.path=%(mpuls.app.root)s/%(mpuls.app.instance)s
+mpuls.app.path.public=%(mpuls.app.path)s/public 
+mpuls.app.path.controllers=%(mpuls.app.path)s/controllers
+mpuls.app.path.templates=%(mpuls.app.path)s/templates
+mpuls.app.path.formed=%(here)s/../../form
+mpuls.app.path.evaluation=%(here)s/../../evaluation
+mpuls.app.path.i18n=%(mpuls.app.path)s/i18n
+mpuls.app.path.config=%(here)s
+#mpuls.app.path.addons = 
+
+mpuls.app.config=%(mpuls.app.path.config)s/%(mpuls.app.setupname)s-config.json
+mpuls.app.dbmapping=%(mpuls.app.path.config)s/%(mpuls.app.setupname)s-mapping.json
+mpuls.app.tagging=%(mpuls.app.path.formed)s/tagging.xml
+#mpuls.app.dblist=%(mpuls.app.path.config)s/%(mpuls.app.setupname)s-dblist.json
+
+# for connections to PostgeSQL database
+# db_database: %s will be replaced by certificate value
+mpuls.db.host     = localhost
+mpuls.db.port     = 5432
+# Define name of the database if fetching name from
+# SSL_CLIENT_S_DN_CN in ssl certificte fails. 
+mpuls.db.name     = dbname
+mpuls.db.database = ka_%s_db
+# db_user:     first %s -> database name, second %s -> user
+mpuls.db.user     = ka_%s_%s
+
+# meta server parameters
+#
+# host/port
+mpuls.meta.host = localhost
+mpuls.meta.port = 6000
+
+# meta server SSL options
+# for testing or development, mpuls.meta.ssl.enabled may be set to false
+# in which case the other ssl parameters are optional.
+mpuls.meta.ssl.enabled = false
+mpuls.meta.ssl.client_cert = %(here)s/ssl/client-cert.pem
+mpuls.meta.ssl.client_key = %(here)s/ssl/client.key
+mpuls.meta.ssl.cacerts = %(here)s/ssl/testcacerts.pem
+
+# filename of the XSLT script that converts the XML representation of
+# the project's data to the XML representation sent to the meta server.
+mpuls.meta.converter = %(mpuls.app.path.public)s/formed/convert-wasko-meta.xsl
+
+[server:main]
+use = egg:Paste#http
+host = 127.0.0.1
+port = 5000
+#ssl_pem = *
+
+[app:main]
+use = egg:mpulsweb
+lang = de
+full_stack = true
+cache_dir = %(here)s/%(mpuls.app.setupname)s-data
+beaker.session.key = mpulsweb
+beaker.session.secret = somesecret
+beaker.session.timeout = 1800
+#beaker.session.type = memory
+#beaker.session.invalidate_corrupt = True
+
+# If you'd like to fine-tune the individual locations of the cache data dirs
+# for the Cache data, or the Session saves, un-comment the desired settings
+# here:
+#beaker.cache.data_dir = %(here)s/data/cache
+#beaker.session.data_dir = %(here)s/data/sessions
+
+# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
+# Debug mode will enable the interactive debugging tool, allowing ANYONE to
+# execute malicious code after an exception is raised.
+#set debug = false 
+
+# Logging configuration
+[loggers]
+keys = root, libmpuls, mpulsweb, instanceapp, routes
+
+[handlers]
+keys = console, wsgilog
+
+[formatters]
+keys = generic, message
+
+[logger_root]
+level = INFO
+handlers = console
+# use wsgi handler for Apache mod_wsgi
+#handlers = wsgilog
+
+[logger_routes]
+level = WARNING
+handlers =
+qualname = mpulsweb.config.routing
+
+[logger_libmpuls]
+level = INFO
+handlers =
+qualname = libmpuls
+
+[logger_mpulsweb]
+level = DEBUG
+handlers =
+qualname = mpulsweb
+
+[logger_instanceapp]
+level = WARNING
+handlers =
+qualname = %(mpuls.app.instance)s
+
+[handler_console]
+class = mpulsweb.lib.logfilter.FilteredHandler
+args = (StreamHandler, sys.stderr)
+level = NOTSET
+formatter = generic
+
+[handler_wsgilog]
+class = pylons.log.WSGIErrorsHandler
+args = ()
+level = INFO
+formatter = message
+
+# Does not work because "logging" is not known!
+#[handler_file]
+#class = mpulsweb.lib.logfilter.FilteredHandler
+## Third parameter in args is maximum size of the log file in bytes.
+## Fourth parameter specifies the number of old files to keep.
+#args=(logging.handlers.RotatingFileHandler,'mpuls.log', 'w', 1048576, 5)
+#level = NOTSET
+#formatter = generic
+
+# Does not work, don't know why :(
+[handler_file]
+class = FileHandler
+# Third parameter in args is maximum size of the log file in bytes.
+# Fourth parameter specifies the number of old files to keep.
+args=('mpuls.log', 'a')
+level = NOTSET
+formatter = generic
+
+[formatter_generic]
+format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(mpuls_dbname)s] [%(name)s] %(message)s
+datefmt = %Y-%m-%d %H:%M:%S
+
+[formatter_message]
+# strip time for logging in apache mod_wsgi
+format = %(levelname)-5.5s [%(name)s] %(message)s
+datefmt = %Y-%m-%d %H:%M:%S



More information about the Mpuls-commits mailing list