From d59fdfce0fb7822f55cd39cdf5f3c55e92e2a53f Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Wed, 30 Nov 2011 03:46:48 +0000 Subject: Enable log collection using Scribe, and some minor log cleanup. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1208240 13f79535-47bb-0310-9956-ffa450edef68 --- sca-cpp/trunk/modules/edit/ssl-start | 66 +++++++++++++++++++++++++++++------- 1 file changed, 54 insertions(+), 12 deletions(-) (limited to 'sca-cpp/trunk/modules/edit/ssl-start') diff --git a/sca-cpp/trunk/modules/edit/ssl-start b/sca-cpp/trunk/modules/edit/ssl-start index 5103566a5c..015a5dda66 100755 --- a/sca-cpp/trunk/modules/edit/ssl-start +++ b/sca-cpp/trunk/modules/edit/ssl-start @@ -27,6 +27,18 @@ jsprefix=`echo "import os; print os.path.realpath('$here/../js')" | python` ../../modules/http/ssl-ca-conf tmp sca-store.com ../../modules/http/ssl-cert-conf tmp sca-store.com server +# Configure and start logging +if [ -x ../../components/log/scribe-cat ]; then + ../../components/log/scribed-central-conf tmp + ../../components/log/scribed-client-conf tmp localhost + ../../components/log/scribed-central-start tmp + ../../components/log/scribed-client-start tmp +fi + +# Start memcached +../../components/cache/memcached-start 11211 +../../components/cache/memcached-start 11212 + # Configure server ../../modules/http/httpd-conf tmp sca-store.com 8090 htdocs ../../modules/http/httpd-event-conf tmp @@ -41,21 +53,21 @@ jsprefix=`echo "import os; print os.path.realpath('$here/../js')" | python` # Configure OAuth authentication # Configure your OAuth app keys here ../../modules/oauth/oauth-conf tmp -../../modules/oauth/oauth-memcached-conf tmp sca-store.com 11212 +../../modules/oauth/oauth-memcached-conf tmp localhost 11212 ../../modules/oauth/oauth2-appkey-conf tmp facebook.com 12345 67890 # Configure OpenID step2 authentication ../../modules/openid/openid-conf tmp ../../modules/openid/openid-step2-conf tmp -../../modules/openid/openid-memcached-conf tmp sca-store.com 11212 +../../modules/openid/openid-memcached-conf tmp localhost 11212 # Configure authorized users #../../modules/http/group-auth-conf tmp john #../../modules/http/group-auth-conf tmp jane #../../modules/http/group-auth-conf tmp admin -# Configure your OpenID and OAuth ids here -../../modules/http/group-auth-conf tmp https://www.google.com/accounts/o8/id?id=45678 -../../modules/http/group-auth-conf tmp 23456789 +# Configure the email addresses associated with your OpenID and OAuth ids here +../../modules/http/group-auth-conf tmp john@sca-store.com +../../modules/http/group-auth-conf tmp jane@sca-store.com # Configure mod-security ../../modules/http/mod-security-conf tmp @@ -64,8 +76,42 @@ jsprefix=`echo "import os; print os.path.realpath('$here/../js')" | python` ../../modules/server/server-conf tmp ../../modules/python/python-conf tmp +# Configure server log streaming +if [ -x ../../components/log/scribe-cat ]; then + cat >tmp/conf/log.conf <tmp/conf/log-ssl.conf <tmp/conf/mod-security-log.conf <>tmp/conf/svhost-ssl.conf < +ForceType application/x-x509-ca-cert + + +EOF + # Configure error pages cat >>tmp/conf/svhost-ssl.conf <>tmp/conf/httpd.conf <>tmp/conf/httpd.conf <>tmp/conf/svhost-ssl.conf < RewriteEngine on @@ -119,10 +165,6 @@ EOF # Create application database directories mkdir -p tmp/appdata/filedb -# Start memcached -../../components/cache/memcached-start 11211 -../../components/cache/memcached-start 11212 - # Start server ../../modules/http/httpd-start tmp -- cgit v1.2.3