New MKWS service-proxy configuration. Initially, copied from that of MKC
[mkws-moved-to-github.git] / tools / service-proxy / service-proxy.properties
1 ## Exemplary SP config
2
3 ## chains.<name> controlls plugin mapping to the chain invoked with 
4 ## 'command=<name>' param, can contain comma-separated list of plugins
5
6 ## by default map everything to pazpar2 relayer
7 chains.*      = relay
8 chains.record = relay
9
10 ## other plugins may be mapped to specific commands
11 chains.auth   = authn
12 chains.categories = categories
13 chains.ils = ils
14
15 ## register pugin classes with custom names
16 plugins.relay      = com.indexdata.serviceproxy.plugins.Pazpar2RelayPlugin
17 plugins.authn      = com.indexdata.serviceproxy.plugins.AuthNTorusPlugin
18 plugins.categories = com.indexdata.serviceproxy.plugins.TargetCategoriesPlugin
19 plugins.ils  = com.indexdata.serviceproxy.plugins.ILSPlugin
20 #inlead, maps to 'record'
21 #plugins.holdings-json  = com.indexdata.serviceproxy.plugins.SecondaryLookup
22 #plugins.rdf-json  = com.indexdata.serviceproxy.plugins.SecondaryLookup
23
24 ## Configuration properties for plug-ins 
25
26 ## relay plugin
27 relay.PROXY_MODE = 3
28 relay.PAZPAR2_URL = http://localhost:8004
29 relay.PAZPAR2_SERVICE_ID = mkc
30 relay.TORUS_BASEURL = http://mkc-admin.indexdata.com/torus2/
31 relay.TORUS_REALM = *
32 relay.TORUS_PARAMS = ?param1=value1
33 relay.STREAMBUFF_SIZE = 4096
34 relay.PARSE_RESPONSES = true
35 relay.CF_ENGINE_ADDRESS = localhost:9003
36
37 ## authn plugin
38 ## used for torus based authentication 
39 authn.TORUS_URL = http://mkc-admin.indexdata.com/torus2/identity.USERS/records/
40 authn.MASTER_TORUS_URL = http://mkc-admin.indexdata.com/torus2/admin.admin/records/
41
42 ## categories plugin, for torus based target categories
43 categories.TORUS_BASEURL = http://mkc-admin.indexdata.com/torus2/
44 categories.EXCLUDE_EMPTY_CATEGORIES = true
45 categories.TORUS_BASEURL_SEARCHABLE = http://mkc-admin.indexdata.com/torus2/
46
47 ils.CFWS_URL = http://localhost:9003/connector
48
49 # holdings-json.URL_PATTERN = http://www.deich.folkebibl.no/cgi-bin/rest_service/copies/1.0-alpha/data/${md-id/u}
50
51 #holdings-json.IN_LOC_ID = z3950.deich.folkebibl.no:210/data
52 #holdings-json.OUT_LOC_ID = z3950.deich.folkebibl.no:210/data
53
54 #rdf-json.URL_PATTERN = http://data.deichman.no/resource/tnr_${md-id/u}.json
55
56 #rdf-json.IN_LOC_ID = z3950.deich.folkebibl.no:210/data
57 #rdf-json.OUT_LOC_ID = z3950.deich.folkebibl.no:210/data