source: main/trunk/greenstone3/resources/web/global.properties.svn@ 32432

Last change on this file since 32432 was 32432, checked in by ak19, 6 years ago
  1. Since there's a chance that 127.0.0.1 isn't always the loopback address or may not always work, we allow this to be specified by the new property localhost.server.http in build.properties. Updating recently commited code that is affected by this and where I had been hardcoding 127.0.0.1. 2. Fixing up the port and now the server host name used by the solr extension: these should be the correct property names, which are localhost.port.http and the new localhost.server.http instead of tomcat.server and the default port for the default protocol, since all GS3 internal communications with solr are done through the local HTTP url, whatever the public URL (with default protocol, matching port and server name) might be. I also updated the get-solr-servlet-url target in build.xml to use the local http base URL (see point 3), so that solr building will work correctly. 3. build.xml now has 2 new targets, one to get the local http base URL and one to get the local http default servlet URL. Both also use the new localhost.server.http property, besides the recently introduced localhost.port.http property. 4. Now the default behaviour of util.pm::get_full_greenstone_url_prefix() is to call the new get-local-http-servlet-url ant target, since only activate.pl's servercontrol.pm helper module uses it. If you want util.pm::get_full_greenstone_url_prefix() to return the non-local (public) servlet URL, pass in 1 (true) for the new 3rd parameter. The important decision here is that activate will use the internal (i.e. local http) greenstone servlet URL to issue pinging and (de)activating commands, since localhost (specifically 127.0.0.1) over http is now always available and because a domain named server over https will create complications to do with certification checks by wget, when wget gets run by activate.pl. Alternatively, activate.pl/servercontrol.pm could run wget with the no-cert-checking flag or we could make wget check the GS3 https certificate if one exists. But all that is convoluted and unnecessary: we've so far always worked with http, and usually with localhost over the httpport, and activate.pl so far has worked well with this, so have some confidence that using the local http URL internally should still work, even if the default GS3 URL has been set up to be a public (https) URL.
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
1## Don't edit version in web/WEB-INF/classes, edit .in version in resources/web
2
3## greenstone home
4#If you want to specify the gsdl3.home manually then uncomment this line
5#in resources/java/global.properties.in, not global.properties since
6#the latter is repeatedly re-generated from global.properties.in
7#gsdl3.home=@gsdl3home@
8#gsdl3.writablehome=@gsdl3writablehome@
9gsdl3.version=@gsdl3version@
10
11[email protected]@
12
13# for collection building
14perl.path=@perlpath@
15
16# tomcat info
17[email protected]@
18[email protected]@
19[email protected]@
20[email protected]@
21[email protected]@
22[email protected]@
23derby.server=@derbyserver@
24
25[email protected]@
26[email protected]@
27localhost.protocol.http=http
28[email protected]@
29[email protected]@
30[email protected]@
31
32
33## Proxy setup - set these if you are behind a firewall and you want services that access the internet
34# The proxy server name
35proxy.host=
36# The proxy server port
37proxy.port=
38# A user name to use when talking to the proxy server
39proxy.user=
40# A password to use when talking to the proxy server
41proxy.password=
42
43#outgoing mail setup.
44# by default it will use port 25 on localhost. Uncomment and modify
45# these settings to use another mail server
46# sample values are for gmail setup
47# Note for gmail, you will need to enable account access for less secure apps
48# for this to work. https://www.google.com/settings/security/lesssecureapps
49#mail.smtp.host=smtp.gmail.com
50#[email protected]
51#mail.smtp.password=xxxpassword
52# port number, eg for gmail: 465 (ssl) 587 (tls)
53#mail.smtp.port=587
54#[email protected]
55# set the following to ssl or tls
56#mail.security=tls
57
58# flax auxiliary external server url for collocation retrieval
59flax.aux.server=flax.nzdl.org/greenstone3/flax
60wikipedia.server=http://wdm.cs.waikato.ac.nz:8080/services/
61wikipedia.url=http://en.wikipedia.org/wiki/
Note: See TracBrowser for help on using the repository browser.