source: main/trunk/greenstone3/build.properties.svn@ 36879

Last change on this file since 36879 was 36879, checked in by anupama, 18 months ago

GS3 shouldn't allow system commands to go through unless it's either from the same PC (IP) as the GS3 server machine (so cmdline building and activate.pl work), or the user is administrator, or the system command is a collection-level command and the user has permissions for this or all collections. If not the case, the user will be asked to login.

File size: 9.4 KB
Line 
1#### properties file for Greenstone3 building using ANT. See the README for more
2#### information
3
4## Tomcat installation
5
6# Allow/disallow symlinks inside the web application
7# Note however, that a value of true for this property will nevertheless be disregarded on Windows,
8# because it has a case insensitive filesystem where a true setting would have had security
9# implications otherwise.
10# Beware that if you are working on any other operating system with a case insensitive filesystem,
11# you should ensure this value remains set to false for security reasons.
12tomcat.user.allowLinking=false
13
14# Specify your Google Client API Id here, and uncomment if you want Greenstone3 to allow users
15# signin on through Google Signin
16# Note: You also need to specify the Google Client Id in web/WEB-INF/servlet.xml as
17// an <init-param></init-param>
18#tomcat.googlesigninJDBCRealm.clientid=????....????.apps.googleusercontent.com
19
20# Set this to the internet/intranet name of the machine that Tomcat is/will be
21# run on. localhost is fine for accessing the server from the local machine,
22# but not remotely
23tomcat.server=localhost
24
25# If your machine's IP doesn't resolve to any of the usual local IP addresses,
26# and instead has any specific IP(s) associated with it, set or add them here within
27# the round brackets, with a vertical bar to connect them with the rest of the line
28tomcat.server.IPregex=(127\\\\.\\\\d+\\\\.\\\\d+\\\\.\\\\d+|::1|0:0:0:0:0:0:0:1(%\\\\d)?)
29
30# server.protocols must contain 'http' or 'https' or both (in order of preference) separated by commas
31# These specify the protocols you want your Digital Library (DL) to be accessible over.
32# The FIRST ONE in the list will be the default.
33# NOTE: For https support, you will additionally also need to
34# - assign a password to keystore.pass below
35# - ensure an unused and valid port number is assigned to tomcat.port.https below
36# - set tomcat.server above to the primary domain name of your DL, and
37# - run the 'ant setup-https-cert' target to get an official security certificate issued (for which
38# you may need admin/sudo permissions)
39server.protocols=http
40#server.protocols=https
41#server.protocols=https,http
42
43# You must set a password if you turned on https support by including 'https' in server.protocols above
44keystore.pass=
45
46# Choose valid port numbers that aren't already in use for tomcat.port.https and localhost.port.http:
47
48# If server.protocols above contains https, then your DL will (additionally) be available over https
49# on the port you assign for tomcat.port.https when you make your DL public.
50# But if server.protocols does not contain https, then tomcat.port.https will remain unused.
51tomcat.port.https=8443
52
53# When the server is running, http will always be available locally at 127.0.0.1 at localhost.port.http
54# If server.protocols above includes http, then your DL will additionally be made public over http
55# (on the hostname denoted by tomcat.server at the port number denoted by localhost.port.http)
56localhost.port.http=8383
57
58# The local server host address. Since 127.0.0.1 is safer than localhost,
59# leave this property as-is unless your local loopback address is not 127.0.0.1.
60# See also https://letsencrypt.org/docs/certificates-for-localhost/
61localhost.server.http=127.0.0.1
62
63# Tomcat's shutdown port - this may need to be changed if you are running two or more Tomcats
64tomcat.shutdown.port=8305
65tomcat.ajp.port=8309
66
67# If tomcat is already running, enter the path to the base directory here
68tomcat.installed.path=
69# uncomment the following if you have moved the greenstone3 web directory to tomcats webapps dir
70#web.home=${tomcat.installed.path}/webapps/greenstone3
71
72# The context name of your GS3 digital library. By default this will be "greenstone3". Ensure this has a value.
73greenstone.context=greenstone3
74# The servlet name (url path) for your default servlet - change this if you are not using 'library' as your servlet name - used for GLI
75greenstone.default.servlet=/library
76
77# solr generally lives off /solr from the base greenstone URL
78solr.context=solr
79
80# oaiserver servlet names - a comma separated list
81oai.servlets=oaiserver
82
83## If creating a GS3 set up with a dispersed web folder ("web-dispersed" GS3), with GS3 in a read-only location, then
84## it will need a distinct user web folder for content (sites and collections), and need to run tomcat from TMP.
85## You need to configure 4 properties to get a "web-dispersed" GS3 to work on windows:
86## - set web.home above to the writable location where collections and sites should be created (use forward slashes)
87## - uncomment using.user.web below and set to true,
88## To make tomcat run from TMP folder (a writable location):
89## - set gsdl3home.isreadonly to true and
90## - set gsdl3.writablehome to ${java.io.tmpdir}/greenstone/web (use forward slashes)
91# using.user.web=true
92
93# While the default derby networked server portnumber is 1527, for Greenstone3 we choose to
94# move this up into the '83' range
95derby.server.port=8327
96# The following is best left as it is, except if 'localhost' doesn't work on your machine,
97# then try setting it to 127.0.0.1 or its IPv6 equivalent 0:0:0:0:0:0:0:1
98derby.server=localhost
99
100## Collection building options
101# uncomment if you don't want to have collection building enabled
102#disable.collection.building=true
103#
104# uncomment (and edit) if you want to control where perl is found
105#perl.path=/usr/bin
106
107## Greenstone 3 server program options
108# does running the server automatically start up Tomcat and a browser
109server.auto.start=false
110# if set to true, won't try other ports if the specified port is not available
111server.keep.port=false
112# whether to make the greenstone pages publicly accessible or only to this machine
113server.external.access=true
114
115##Browser setup
116browser.path=
117
118## Proxy setup - Greenstone installation will attempt to download extra packages. Set the proxy information here if you are behind a firewall.
119# The proxy server name
120proxy.host=
121# The proxy server port
122proxy.port=
123# A user name to use when talking to the proxy server (optional, will prompt if not entered here)
124proxy.user=
125# A password to use when talking to the proxy server (optional, will prompt if not entered here)
126proxy.password=
127
128## java compilation properties - for javac
129# Should compilation include the debug option?
130compile.debug=true
131# Should compilation include the deprecation option?
132compile.deprecation=true
133# Should compilation include the optimize option?
134compile.optimize=true
135
136# Properties that control cross-compiling
137compile.cross = false
138#cross.os = windows
139#cross.host = i686-w64-mingw32
140#cross.build = i686-pc-linux-gnu
141#cross.configure.extraargs =
142
143#cross.os = android
144#cross.host = arm-linux-androideabi
145#cross.build = i686-pc-linux-gnu
146#cross.configure.extraargs = gl_cv_header_working_stdint_h=yes
147
148
149# Control whether or not JNI bindings are used
150# e.g. MG, MG++ and GDBM and the like
151# Setting this false means these components are not available to the install
152# The expectation is that collections will be build from 100% Java components:
153# e.g Lucene and JDBM
154#
155with.jni=true
156
157# Controls whether or not we want wv-ware compiled up for processing
158# Word docs. If setting to false, then you might want to add in the
159# OpenOffice and Tika gs2 extensions
160with.wvware=true
161
162## Controls whether or not we want GLI and GEMS to be checked out and compiled
163with.gli.and.gems=true
164
165## Control if compilation of gs2 is static or not. Used, for example, for distributions
166# Same issue as 'with.jni' for how this gets used in ant 1.7.1 and before
167#compile.static=true
168
169# A flag used by the release-kit to compile with gnomelib
170# (Previously this flag was called use.support.lib but got conflated with
171# the property checkout.gnomelib.ext below)
172#use.gnomelib.ext=true
173
174# Adjust accordingly:
175# gnomelib typically needed to compile up wvWare (on by default)
176# imagemagick used to generate thumbnai images etc (off by default, as may be already installed)
177checkout.gnomelib.ext=true
178checkout.imagemagick.ext=false
179
180# By default, GS3 will check out the pdfbox extension from SVN
181checkout.pdfbox.ext=true
182
183# The following two properties are automatically overridden by gs3-server
184# when running off a read-only medium such as a DVD ...
185#
186# The 'writable' home default is to be the same location as gsdl3.home
187gsdl3home.isreadonly=false
188gsdl3.writablehome=${basedir}/web
189
190# ... alternative the above can be changed to
191#
192# gsdl3home.isreadonly=true
193# gsdl3.writablehome=${java.io.tmpdir}/greenstone/web
194#
195# ... or else provided on the command line, e.g.:
196# ant -Dgsdl3home.isreadonly=true gsdl3.writablehome=/tmp/greenstone/web start
197
198## windows c++ compilation
199# The following property does not help in build.xml.
200# The user needs to run Visual Studio's vcvars32.bat script from the
201# MSDOS prompt before compiling Greenstone3 (before "ant prepare install")
202#compile.windows.c++.setup=C:/Program Files/Microsoft Visual Studio/VC98/Bin/VCVARS32.BAT
203
204##Flax stuff##
205##uncomment if you want to install flax
206#install.flax=true
207flax.checkout.path=${flax.svn.root}/trunk/flaxmain
208
209##These need to be uncommented if using Fedora and Fedora GSearch with Greenstone's tomcat
210fedora.home=#${basedir}/ext/fedora3
211#fedora.maxpermsize=-XX:MaxPermSize=128m
212#fedora.password=pounamu
213#index.writelock.timeout=10000
214
215##Web services related constants##
216base.webservice.name=SOAPServer
217##listing and description of all the web services deployable on GS3##
218web.services.list=${base.webservice.name} for Greenstone3's core web services, QBR${base.webservice.name} for Query, Browse and Retrieve services
219
Note: See TracBrowser for help on using the repository browser.