1 | # |
---|
2 | # MILK Configuration File |
---|
3 | # - see toplevel README.txt file for config instructions |
---|
4 | # |
---|
5 | [DEFAULT] |
---|
6 | # |
---|
7 | # the following is the server on which this browse/discovery instance runs! |
---|
8 | server: http://localhost:5000 |
---|
9 | |
---|
10 | # |
---|
11 | # the following is the server on which the NDG discovery service is running! (Not to be confused with |
---|
12 | # the server on which the NDG discovery web service is running). This can and probably should be the local |
---|
13 | # server (i.e. don't change it!) |
---|
14 | # |
---|
15 | ndgServer: %(server)s |
---|
16 | # |
---|
17 | ##!NOTE: These are changed to reflect the proxy prefix |
---|
18 | layout: /layout/ |
---|
19 | icondir: /layout/icons/ |
---|
20 | |
---|
21 | # |
---|
22 | mailServer: xxxoutbox.rl.ac.uk |
---|
23 | metadataMaintainer: b.n.lawrence@rl.ac.uk |
---|
24 | repository: %(server)s |
---|
25 | tbrecipient: b.n.lawrence@rl.ac.uk |
---|
26 | |
---|
27 | # The following should only be needed for debugging some parts of the code when running on sandboxes behind a firewall |
---|
28 | proxyServer: http://wwwcache.rl.ac.uk:8080/ |
---|
29 | disclaimer: |
---|
30 | |
---|
31 | # if set to True, errors output will generally be more verbose - e.g. with stacktrace to templates |
---|
32 | debug: True |
---|
33 | |
---|
34 | [SEARCH] |
---|
35 | discoveryURL: %(ndgServer)s/discovery |
---|
36 | |
---|
37 | [layout] |
---|
38 | localLink: %(ndgServer)s/layout/ |
---|
39 | localImage: %(icondir)sndg_logo_circle.gif |
---|
40 | localAlt: visit badc |
---|
41 | ndgLink: http://ndg.nerc.ac.uk/ |
---|
42 | ndgImage: %(icondir)sndg_logo_circle.gif |
---|
43 | ndgAlt: visit ndg |
---|
44 | stfcLink: http://ceda.stfc.ac.uk/ |
---|
45 | stfcImage: %(icondir)sstfc-circle-sm.gif |
---|
46 | key: %(icondir)spadlock.png |
---|
47 | Xicon: %(icondir)sxml.png |
---|
48 | plot: %(icondir)splot.png |
---|
49 | printer: %(icondir)sprinter.png |
---|
50 | helpIcon: %(icondir)shelp.png |
---|
51 | HdrLeftAlt: %(icondir)s British Atmospheric Data Centre |
---|
52 | HdrLeftLogo: %(icondir)sbadc_logo.gif |
---|
53 | navMinus: %(icondir)snavigate_minus.png |
---|
54 | navPlus: %(icondir)snavigate_plus.png |
---|
55 | loadingIcon: %(icondir)sloading.gif |
---|
56 | feedIcon: %(icondir)sfeed-icon-28x28.png |
---|
57 | vocabSrchIcon: %(icondir)sVocabTermSearch_button.png |
---|
58 | textSrchIcon: %(icondir)sFreetTextSearch_button.png |
---|
59 | |
---|
60 | [WMC_CLIENT] |
---|
61 | # specify url for the client; if not specified it will not be possible to view WMS data for |
---|
62 | # discovered records |
---|
63 | url= |
---|
64 | |
---|
65 | [NDG_A_SERVICE] |
---|
66 | icon: %(icondir)splot.png |
---|
67 | icon_alt: A Service |
---|
68 | icon_title: LINKS to a DATA BROWSE view of this dataset |
---|
69 | |
---|
70 | [NDG_B_SERVICE] |
---|
71 | # |
---|
72 | #These are the hosts which are publicly available on which the browse |
---|
73 | #service is running. The list should be of the form 'repository: hostname' |
---|
74 | #where repository is the NDG identifier .... |
---|
75 | # |
---|
76 | neodc.nerc.ac.uk: %(server)s |
---|
77 | badc.nerc.ac.uk: %(server)s |
---|
78 | www.npm.ac.uk: http://wwwdev.neodaas.ac.uk/projects/ndg |
---|
79 | grid.bodc.nerc.ac.uk: http://grid.bodc.nerc.ac.uk |
---|
80 | ndg.noc.soton.ac.uk: http://ndg.noc.soton.ac.uk:8001 |
---|
81 | icon: %(icondir)sbrowse_bservice.png |
---|
82 | icon_alt: B Service |
---|
83 | icon_title: Links to a METADATA BROWSE view of this dataset |
---|
84 | instance: SERVICEHOST/view/URI |
---|
85 | |
---|
86 | [NDG_EXIST] |
---|
87 | # |
---|
88 | # following is a list of repository servers, actually only one is needed, |
---|
89 | # at any one location running browse, and that is the local one. The |
---|
90 | # entire purpose of the rest of the list is to simplify updates. These |
---|
91 | # hosts do not need to be visible outside of corporate firewalls. |
---|
92 | # The list should be of the form 'repository: hostname' where repository |
---|
93 | # is the NDG identifier. |
---|
94 | # |
---|
95 | local: bora.badc.rl.ac.uk |
---|
96 | badc.nerc.ac.uk: bora.badc.rl.ac.uk |
---|
97 | neodc.nerc.ac.uk: bora.badc.rl.ac.uk |
---|
98 | grid.bodc.nerc.ac.uk: grid.bodc.nerc.ac.uk |
---|
99 | ndg.noc.soton.ac.uk: ndg.noc.soton.ac.uk |
---|
100 | www.npm.ac.uk: pgsql.npm.ac.uk |
---|
101 | passwordFile: ./passwords.txt |
---|
102 | |
---|
103 | # |
---|
104 | # NDG Security |
---|
105 | # TODO: this security stuff is obsolete and when Phil's new security layer is added |
---|
106 | # it should be completely stripped out of the MILK codebase |
---|
107 | # |
---|
108 | |
---|
109 | # Security settings for configuration as a client to a Single Sign On Service |
---|
110 | # i.e. Where Are You From, login and logout operations are handled by a |
---|
111 | # separate standalone paster instance |
---|
112 | #[NDG_SECURITY.ssoClient] |
---|
113 | ## THIS service's address for secure connections - the Single Sign On service |
---|
114 | ## returns security parameters to this service along this channel |
---|
115 | #sslServer: https://localhost |
---|
116 | ##sslServer: https://ndgbeta.badc.rl.ac.uk |
---|
117 | # |
---|
118 | ## THIS service's address for unencrypted connections - when login is complete, |
---|
119 | ## the BaseController redirects to an equivalent address under this host name. |
---|
120 | ## sslServer and server settings must match for the sharing of cookies. |
---|
121 | #server: http://localhost |
---|
122 | # |
---|
123 | ## WAYF running on Single Sign On Service - omit to default to WAYF running on |
---|
124 | ## THIS paster instance |
---|
125 | #wayfURI: https://localhost/sso/wayf |
---|
126 | # |
---|
127 | ## Logout URI running on Single Sign On Service - omit to default to logout |
---|
128 | ## running on THIS paster instance |
---|
129 | #logoutURI: https://localhost/sso/logout |
---|
130 | |
---|
131 | # Security settings for running a Single Sign On Service from this paster |
---|
132 | # instance. Either NDG_SECURITY.ssoClient or NDG_SECURITY.ssoService sections |
---|
133 | # should be set but NOT both |
---|
134 | |
---|
135 | # Single Sign On Service Settings |
---|
136 | [NDG_SECURITY.ssoService] |
---|
137 | |
---|
138 | # THIS service's address for secure connections - the Single Sign On service |
---|
139 | # returns security parameters to this service along this channel |
---|
140 | sslServer: https://localhost |
---|
141 | #sslServer: https://ndgbeta.badc.rl.ac.uk |
---|
142 | |
---|
143 | # THIS service's address for unencrypted connections - when login is complete, |
---|
144 | # the BaseController redirects to an equivalent address under this host name. |
---|
145 | # sslServer and server settings must match for the sharing of cookies. |
---|
146 | server: http://localhost |
---|
147 | |
---|
148 | enableOpenID: True |
---|
149 | |
---|
150 | # Redirect SOAP output to a file e.g. open(<somefile>, 'w') |
---|
151 | tracefile: None |
---|
152 | #tracefile: sys.stderr |
---|
153 | |
---|
154 | # Service addresses |
---|
155 | sessionMgrURI: https://localhost/SessionManager |
---|
156 | #sessionMgrURI: https://ndgbeta.badc.rl.ac.uk/SessionManager |
---|
157 | attAuthorityURI: http://localhost:5000/AttributeAuthority |
---|
158 | #attAuthorityURI: http://aa.ceda.rl.ac.uk |
---|
159 | |
---|
160 | # SSL Connections |
---|
161 | # |
---|
162 | # Space separated list of CA cert. files. The peer cert. |
---|
163 | # must verify against at least one of these otherwise the connection is |
---|
164 | # dropped. Include CA certs for all the sites trusted |
---|
165 | sslCACertFilePathList: certs/ndg-test-ca.crt |
---|
166 | |
---|
167 | # Web Services HTTP Proxy fine tuning |
---|
168 | # |
---|
169 | # For most situations, these settings can be ignored and instead make use of |
---|
170 | # the http_proxy environment variable. They allow for the case where specific |
---|
171 | # settings are needed just for the security web services calls |
---|
172 | |
---|
173 | # Overrides the http_proxy environment variable setting - may be omitted |
---|
174 | #httpProxyHost: wwwcache.rl.ac.uk:8080 |
---|
175 | |
---|
176 | # Web service clients pick up the no_proxy environment variable setting by |
---|
177 | # default. Set this parameter to override no_proxy for web service |
---|
178 | # connections. |
---|
179 | #noHttpProxyList: localhost, 127.0.0.1 |
---|
180 | |
---|
181 | # WS-Security signature handler - set a config file with 'wssCfgFilePath' |
---|
182 | # or omit and put the relevant content directly in here under |
---|
183 | # 'NDG_SECURITY.wssecurity' section |
---|
184 | #wssCfgFilePath: wssecurity.cfg |
---|
185 | |
---|
186 | [NDG_SECURITY.wssecurity] |
---|
187 | |
---|
188 | # Settings for signature of an outbound message ... |
---|
189 | |
---|
190 | # Certificate associated with private key used to sign a message. The sign |
---|
191 | # method will add this to the BinarySecurityToken element of the WSSE header. |
---|
192 | # binSecTokValType attribute must be set to 'X509' or 'X509v3' ValueType. |
---|
193 | # As an alternative, use 'signingCertChain' parameter |
---|
194 | |
---|
195 | # file path PEM encoded cert |
---|
196 | signingCertFilePath=certs/clnt.crt |
---|
197 | |
---|
198 | # file path to PEM encoded private key file |
---|
199 | signingPriKeyFilePath=certs/clnt.key |
---|
200 | |
---|
201 | # Password protecting private key. Leave blank if there is no password. |
---|
202 | signingPriKeyPwd= |
---|
203 | |
---|
204 | # Provide a space separated list of file paths. CA Certs should be included |
---|
205 | # for all the sites this installation trusts |
---|
206 | caCertFilePathList=certs/ndg-test-ca.crt |
---|
207 | |
---|
208 | # Set the ValueType for the BinarySecurityToken added to the WSSE header for a |
---|
209 | # signed message. |
---|
210 | reqBinSecTokValType=X509v3 |
---|
211 | |
---|
212 | # Add a timestamp element to an outbound message |
---|
213 | addTimestamp=True |
---|
214 | |
---|
215 | # For WSSE 1.1 - service returns signature confirmation containing signature |
---|
216 | # value sent by client |
---|
217 | applySignatureConfirmation=False |
---|
218 | |
---|
219 | # |
---|
220 | # Gatekeeper settings |
---|
221 | # |
---|
222 | [NDG_SECURITY.gatekeeper] |
---|
223 | # |
---|
224 | # Policy Enforcement Point calls a Policy Decision Point interface: |
---|
225 | |
---|
226 | # File path to Python module containing the PDP class - leave blank if the |
---|
227 | # module is in PYTHONPATH env var |
---|
228 | pdpModFilePath: |
---|
229 | |
---|
230 | # Name of PDP Python module |
---|
231 | pdpModName: ndg.security.common.authz.pdp.browse |
---|
232 | |
---|
233 | # Name of PDP class used |
---|
234 | pdpClassName: BrowsePDP |
---|
235 | |
---|
236 | # File Path to configuration file used by PDP class (environment variables |
---|
237 | # can be used in this path e.g. $PDP_CONFIG_DIR/pdp.cfg. Omit this parameter |
---|
238 | # to make the PEP read the PDP settings from THIS config file |
---|
239 | #pdpCfgFilePath: |
---|
240 | |
---|
241 | # Read PDP params from THIS section |
---|
242 | pdpCfgSection: NDG_SECURITY.gatekeeper |
---|
243 | |
---|
244 | # |
---|
245 | # Settings for Policy Decision Point called by the PEP |
---|
246 | |
---|
247 | # Address of Attribute Authority for Data Provider |
---|
248 | #aaURI: http://aa.ceda.rl.ac.uk |
---|
249 | aaURI: http://localhost:5000/AttributeAuthority |
---|
250 | |
---|
251 | # Verify peer cert for SSL connections to Session Manager |
---|
252 | sslCACertFilePathList: certs/ndg-test-ca.crt |
---|
253 | |
---|
254 | # Set to file object to dump SOAP message output for debugging |
---|
255 | tracefile: |
---|
256 | |
---|
257 | # CA certificates used to verify the signature of user Attribute Certificates |
---|
258 | # - space delimited list but note that currently only the CA of this site |
---|
259 | # is needed because only mapped Attribute Certificates may be accepted. |
---|
260 | acCACertFilePathList: certs/ndg-test-ca.crt |
---|
261 | |
---|
262 | # X.509 Distinguished Name for Attribute Certificate issuer - should match with |
---|
263 | # the issuer element of the users Attribute Certificate submitted in order to |
---|
264 | # gain access |
---|
265 | acIssuer: /CN=AttributeAuthority/O=NDG Security Test/OU=Site A |
---|
266 | #acIssuer: /CN=AttributeAuthority/O=NDG/OU=BADC |
---|
267 | |
---|
268 | # WS-Security signature handler - set a config file with 'wssCfgFilePath' |
---|
269 | # or omit and put the relevant content directly in here under the section name |
---|
270 | # specified by 'wssCfgSection' below |
---|
271 | #wssCfgFilePath: wssecurity.cfg |
---|
272 | |
---|
273 | # Config file section for WS-Security settings - Nb. the gatekeeper shares the |
---|
274 | # same settings as the Single Sign On Service. |
---|
275 | wssCfgSection: NDG_SECURITY.wssecurity |
---|
276 | |
---|
277 | [RELATED] |
---|
278 | icon: %(icondir)srelated_link.png |
---|
279 | icon_alt: Related |
---|
280 | icon_title: Links to a RELATED URL |
---|
281 | |
---|
282 | [DISCOVERY] |
---|
283 | icon: %(icondir)scatalogue_dservice.png |
---|
284 | icon_alt: Catalogue |
---|
285 | default: %(server)s |
---|
286 | formatDefault=DIF |
---|
287 | icon_title: Links to the DISCOVERY RECORD for this dataset |
---|
288 | standalone: False |
---|
289 | #NB, if unset, this will default to the discovery service at ndg.badc.rl.ac.uk |
---|
290 | #discoveryServiceURL:http://localhost:8080/axis2/services/DiscoveryService |
---|
291 | |
---|
292 | [MILK_SERVER] |
---|
293 | # |
---|
294 | # Configure the MILK_SERVER framework here |
---|
295 | # |
---|
296 | editorOn=True |
---|
297 | browseOn=False |
---|
298 | discoveryOn=True |
---|
299 | |
---|