Merge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws
authorWolfram Schneider <wosch@indexdata.dk>
Mon, 22 Sep 2014 13:39:47 +0000 (13:39 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Mon, 22 Sep 2014 13:39:47 +0000 (13:39 +0000)
Makefile
examples/apache2/mkws-examples-mike
examples/htdocs/mike.html
test/.gitignore
test/bin/bomb.pl
tools/apache2/jasmine-dev.template
tools/apache2/sp-mkws-live
tools/service-proxy/service-proxy.properties

index dc14855..ebcb40d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -25,4 +25,5 @@ check: setup check-js phantomjs
 help:
        @echo "make [ all | setup | clean | distclean ]"
        @echo "     [ check | check-js | phantomjs ]"
+       @echo "If 'make check' timeout is too short, extend with: make check PHANTOMJS_TIMEOUT=40"
 
index 7b1b31a..757e785 100644 (file)
@@ -1,10 +1,10 @@
 <VirtualHost *:80>
     ServerName x.example.indexdata.com
-    DocumentRoot /usr/local/src/git/mkws/examples/htdocs/
-    Alias /tools/htdocs/ /usr/local/src/git/mkws/tools/htdocs/
-    Alias /src/ /usr/local/src/git/mkws/src/
-    Alias /jasmine/ /usr/local/src/git/mkws/examples/jasmine/
-    Alias /test/ /usr/local/src/git/mkws/test/
+    DocumentRoot /Users/mike/git/work/mkws/examples/htdocs/
+    Alias /tools/htdocs/ /Users/mike/git/work/mkws/tools/htdocs/
+    Alias /src/ /Users/mike/git/work/mkws/src/
+    Alias /jasmine/ /Users/mike/git/work/mkws/examples/jasmine/
+    Alias /test/ /Users/mike/git/work/mkws/test/
 
     <Directory />
         Allow from all
index 198cc44..2419ac5 100644 (file)
@@ -2,17 +2,12 @@
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     <title>MKWS demo</title>
-    <link rel="stylesheet" type="text/css" href="tools/htdocs/mkws.css" />
     <script type="text/javascript">
       var mkws_config = {
-        // For now, we have to provide known-bad credentials to skip user/pw login: see bug MKSP-125
-        // Was: //sp-mkws.indexdata.com/service-proxy/?command=auth&action=perconfig&username=XXX&password=XXX
-//        pp2_hostname: "sp-mkws.indexdata.com",
-//        sp_auth_path: "service-proxy/",
-//        sp_auth_query: "command=auth&action=perconfig",
-//        sp_auth_credentials: "XXX/XXX",
+//        pp2_hostname: "x.sp-mkws.indexdata.com",
       };
     </script>
+    <link rel="stylesheet" type="text/css" href="tools/htdocs/mkws.css" />
     <script type="text/javascript" src="tools/htdocs/jquery-1.10.0.min.js"></script>
     <script type="text/javascript" src="tools/htdocs/jquery.json-2.4.js"></script>
     <script type="text/javascript" src="tools/htdocs/handlebars-v1.1.2.js"></script>
index dd1c75a..dc05163 100644 (file)
@@ -1,7 +1,8 @@
-node_modules
+libexec
 logs/error_log
 logs/jasmine-dev
 logs/mkws-jasmine-access.log
 logs/mkws-jasmine-error.log
 logs/mkws-jasmine-rewrite.log
 logs/mkws-jasmine.pid
+node_modules
index a79be99..95e7dd5 100755 (executable)
@@ -45,7 +45,7 @@ eval {
     BSD::Resource::setrlimit("RLIMIT_CPU", $timeout, 2*$timeout) or die "Cannot set CPU limit: $!\n";
 };
 if ($@) {
-    warn "Please install the package BSD::Resource!\n\n$@\n";
+    warn "WARNING: things would go more nicely with the BSD::Resource package\n";
 }
 
 
index acf7cf4..92e22cb 100644 (file)
@@ -16,7 +16,9 @@ Listen ${APACHE_PORT}
 Include ${APACHE_MODULES}
 
 <IfModule log_config_module>
-   LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
+   # %O only works if mod_logio is enabled, which it isn't on Mike's MacBook
+   # LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
+   LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s \"%{Referer}i\" \"%{User-Agent}i\"" combined
 </IfModule>
 
 # pazpar2 / service proxy config
index bcd9e81..f335d96 100644 (file)
     Header set Access-Control-Allow-Credentials true
 
     ProxyPreserveHost On
-    # We could use any of the following:
-    #  sp-mkc.indexdata.com/service-proxy/ -- multiplexer
-    #  sp-mkc-sansa.indexdata.com:8080/service-proxy/ -- 1st back-end server
-    #  sp-mkc-arya.indexdata.com:8080/service-proxy/ -- 2nd back-end server
-    ProxyPass        /service-proxy/ http://sp-mkc-sansa.indexdata.com:8080/service-proxy/
-    ProxyPassReverse /service-proxy/ http://sp-mkc-sansa.indexdata.com:8080/service-proxy/
+    ProxyPass        /service-proxy/ http://sp-mkws-backend.indexdata.com:8080/service-proxy/
+    ProxyPassReverse /service-proxy/ http://sp-mkws-backend.indexdata.com:8080/service-proxy/
 
     PerlOptions +Parent
     PerlSwitches -I/home/indexdata/mkws/tools/mod_perl
index 1c67a04..a3b92e4 100644 (file)
@@ -6,6 +6,7 @@ plugins.relay      = com.indexdata.serviceproxy.plugins.Pazpar2RelayPlugin
 plugins.authn      = com.indexdata.serviceproxy.plugins.AuthNTorusPlugin
 plugins.categories = com.indexdata.serviceproxy.plugins.TargetCategoriesPlugin
 plugins.ils        = com.indexdata.serviceproxy.plugins.ILSPlugin
+plugins.statistics = com.indexdata.serviceproxy.plugins.StatisticsPlugin
 
 
 # Configuration properties for individual plug-ins 
@@ -41,7 +42,7 @@ chains.auth = authn
 chains.categories = categories
 chains.ils = ils
 # Map all other commands to the Pazpar2 relayer
-chains.* = relay
+chains.* = relay,statistics
 
 
 # Just so I can check that this particular SP config is in use