Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
[mkws-moved-to-github.git] / config / service-proxy / service-proxy.properties
1 # Specify chains of plugins
2 chains.*      = relay,statistics
3 chains.auth   = authn
4 chains.categories = categories
5 chains.record = relay,holdings,recordcache,statistics
6 chains.show = relay,recordcache,statistics
7 chains.imageproxy = imageproxy
8 chains.exportrecords = exportrecords
9 chains.recordcache = recordcache
10 chains.clickout = statistics,clickout
11 chains.ils = ils
12
13 # Map plug-in names to classes
14 plugins.relay      = com.indexdata.serviceproxy.plugins.Pazpar2RelayPlugin
15 plugins.authn      = com.indexdata.serviceproxy.plugins.AuthNTorusPlugin
16 plugins.ace        = com.indexdata.serviceproxy.plugins.AcePlugin
17 plugins.holdings   = com.indexdata.serviceproxy.plugins.HoldingsPlugin
18 plugins.categories = com.indexdata.serviceproxy.plugins.TargetCategoriesPlugin
19 plugins.imageproxy = com.indexdata.serviceproxy.plugins.ImageProxyPlugin
20 plugins.statistics = com.indexdata.serviceproxy.plugins.StatisticsPlugin
21 plugins.ace        = com.indexdata.serviceproxy.plugins.AcePlugin
22 plugins.exportrecords = com.indexdata.serviceproxy.plugins.ExportRecordsPlugin
23 plugins.recordcache = com.indexdata.serviceproxy.plugins.recordcache.RecordCachePlugin
24 plugins.clickout   = com.indexdata.serviceproxy.plugins.ClickOutPlugin
25 plugins.ils   = com.indexdata.serviceproxy.plugins.ILSPlugin
26
27
28
29 # Properties for plug-ins 
30 #
31 # relay plugin
32 relay.PROXY_MODE = 3
33 relay.PAZPAR2_URL = http://localhost:8004/search.pz2
34 relay.PAZPAR2_SERVICE_ID = mk2demo
35 relay.TORUS_BASEURL = http://${thisHost}/torus2/
36 relay.TORUS_REALM = *
37 relay.TORUS_PARAMS = ?param1=value1
38 relay.STREAMBUFF_SIZE = 4096
39 relay.PARSE_RESPONSES = true
40 relay.SERIALIZE_REQUESTS = false
41
42 # authn plugin
43 authn.MASTER_TORUS_URL = http://${thisHost}/torus2/admin.admin/records/
44 authn.TORUS_URL = http://${thisHost}/torus2/identity.USERS/records/
45 authn.ACTION_SEQUENCE = check,cookie,referrer,ipauth
46 authn.REQUIRED_COOKIES = InstCode BrCode
47 authn.COOKIE_QUERY = shibId=${InstCode}
48 authn.AGGRESSIVE_SESSION_INVALIDATION = yes
49
50 # categories plugin
51 categories.TORUS_BASEURL = http://${thisHost}/torus2/
52 categories.EXCLUDE_EMPTY_CATEGORIES = true
53 categories.TORUS_BASEURL_SEARCHABLE = http://${thisHost}/torus2/
54 categories.CACHE_CATEGORIES_ON_SESSION = true
55
56 # ACE plugin
57 ace.PZ2P_CLIENT_LIFETIME_MSECS = 55000
58 ace.TIME_BETWEEN_ACE_AND_RECORD_MSECS = 100
59 ace.ACE_SEARCH_TIME_OUT = 5000
60 ace.RECORD_TIME_OUT = 2500
61 ace.DUMP_RECORDS_TO_CONSOLE = false
62 ace.PUSH!PZ2_ACE_CLIENT = record
63 ace.TYPE!PZ2_ACE_CLIENT = com.indexdata.serviceproxy.plugins.ace.Pz2AceRecordSession
64 ace.PULL!PZ2_ACE_CLIENT = record
65 ace.DUMP_BYTARGET_DOC = false
66 ace.PER_TARGET_HITS_THRESHOLD = 100
67
68 # Holdings plug-in
69 holdings.DUMP_RECORDS_TO_CONSOLE = true
70 holdings.RECORD_TIME_OUT = 2500
71 #holdings.PULL!PZ2_ACE_CLIENT = record
72 holdings.PUSH!ACE_RESPONSE : record
73 holdings.TYPE!ACE_RESPONSE = org.w3c.dom.Document
74 holdings.DUMP_TARGET_SETTINGS_TO_CONSOLE = false
75 holdings.PAZPAR2_URL = REF:relay.PAZPAR2_URL
76
77 # Image Proxy plug-in
78 imageproxy.OPEN_LIBRARY_IMAGE_URL = http://covers.openlibrary.org/b/isbn/${isbn}-${size}.jpg
79 imageproxy.CACHE_ON_SERVER = true
80 imageproxy.CACHE_IN_BROWSER = true
81 imageproxy.CACHE_MISSING_IMAGE = true
82
83 # Statistics plug-in
84 statistics.MAX_BACKUP_INDEX = 5
85 statistics.MAX_FILE_SIZE = 10000KB
86
87 # Exporting Records
88 exportrecords.BRANDING = MasterKey
89 exportrecords.SMTP_HOST_NAME = kebab.indexdata.com
90 exportrecords.SMTP_PORT = 25
91 exportrecords.SMTP_AUTH = false
92 exportrecords.EMAIL_SUBJECT = Export by email
93 exportrecords.EMAIL_FROM = info@indexdata.com
94 exportrecords.PERMALINK_PROTOCOL = http
95 exportrecords.PERMALINK_DOMAIN = ${thisHost}
96 exportrecords.PERMALINK_PATH = item.html
97 exportrecords.PERMALINK_REC_ID= prefixrecid=rec_${recid}
98 #exportrecords.PERMALINK_REC_QRY = au="${md-author}" and ti="${md-title}"
99
100 # Record Cache Settings
101 recordcache.MAX_BASKET_SIZE = 50
102 recordcache.MAX_VIEWED_SIZE = 10
103
104 # ClickOut plug-in (in order to generate click out statistics)
105 clickout.PARAMETER = No parameters required for this plug-in
106
107 ils.CFWS_URL = http://connect.indexdata.com:9000/connector