forked from Vizzuality/rasdaman-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
petascope.properties
256 lines (220 loc) · 11.1 KB
/
petascope.properties
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
# This file is part of rasdaman community.
#
# Rasdaman community is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Rasdaman community is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with rasdaman community. If not, see <http://www.gnu.org/licenses/>.
#
# Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Peter Baumann /
# rasdaman GmbH.
#
# For more information please see <http://www.rasdaman.org>
# or contact Peter Baumann via <baumann@rasdaman.com>.
# ---------------------------------------------------------------------
# settings.properties
#
# PetaScope configuration file
#
# Important note:
# Parameters marked "yes" in item "need to adapt" MUST be configured
# to meaningful values during installation, they CAN NOT be used as is!
# ---------------------------------------------------------------------
# parameter: metadata_driver
# purpose: name of DBMS driver to be loaded
# need to adapt: no
metadata_driver=org.postgresql.Driver
# parameter: metadata_url
# purpose: JDBC URL of database serving PetaScope metadata
# recommendation: use default values on a default Postgresql
# installation, and DB name petascopedb
# need to adapt: yes
metadata_url=jdbc:postgresql://localhost:5432/petascopedb
# parameter: metadata_user
# purpose: DBMS login under which servlet has r/w access
# to PetaScope metadata;
# recommendation: establish a dedicated user
# need to adapt: yes
metadata_user=rasdaman
# parameter: metadata_pass
# purpose: password for DBMS login, as above
# need to adapt: yes
metadata_pass=rasdaman
# parameter: rasdaman_url
# purpose: URL of rasdaman database serving PetaScope raster data
# need to adapt: yes
rasdaman_url=http://localhost:7001
# parameter: rasdaman_database
# purpose: name of rasdaman database serving PetaScope raster data
# recommendation: use rasdaman standard name, RASBASE
# need to adapt: no
rasdaman_database=RASBASE
# parameter: rasdaman_user
# purpose: username to access rasdaman
# need to adapt: yes
rasdaman_user=rasguest
# parameter: rasdaman_pass
# purpose: password to access rasdaman
# need to adapt: yes
rasdaman_pass=rasguest
# parameter: rasdaman_admin_user
# purpose: admin username to access rasdaman
# need to adapt: yes
rasdaman_admin_user=rasadmin
# parameter: rasdaman_rasadmin_pass
# purpose: admin password to access rasdaman
# need to adapt: yes
rasdaman_admin_pass=rasadmin
# parameter: rasdaman_retry_attempts
# purpose: maximum re-connect attempts to a rasdaman server in case
# a connection fails.
# need to adapt: no
rasdaman_retry_attempts=5
# parameter: rasdaman_retry_timeout
# purpose: wait time in seconds between re-connect attempts to
# a rasdaman server
# need to adapt: no
rasdaman_retry_timeout=10
# parameter: rasdaman_bin_path
# purpose: path to rasdaman binaries
# need to adapt: no
rasdaman_bin_path=/opt/rasdaman/bin/
# parameter: xml_validation
# purpose: If set to `true', input XML requests will be validated against
# OGC WCS schema definitions.
# (!) When deploying Petascope it will take around 1-2 mins to
# load the schemas (!). Set the parameter to `false' if no input
# validation is required (default).
# need to adapt: yes
xml_validation=false
# parameter: secore_urls
# purpose: SECORE URLs to be used by Petascope.
# description: comma-separated list of SECORE endpoints, relevance order.
# need to adapt: yes
secore_urls=http://localhost:8080/def
# parameter: secore_versions
# purpose: versions of SECORE's resolvers
# (grep "VERSION_M.*=" <rasdaman_src>/applications/secore/secore-core/src/ -r)
# need to adapt: yes
secore_versions=0.1.0
# parameter: ogc_cite_output_optimization
# purpose: To pass OGC CITE test, Petascope has to optimize the outputs to
# bypass some test cases.
# description: Petascope will trim indentation from WCS GetCoverage,
# DescribeCoverage, GridEnvelop element will have the axis order
# accordingly by coverage's CRS (especially: EPSG:4326 whose order is Lat, Long).
# Only enable this option when executing OGC CITE tests, and set
# xml_validation to false otherwise some SOAP requests will fail
# due to the input request not passing the schema validation.
# need to adapt: no
ogc_cite_output_optimization=false
# parameter: metadata_in_covsummary
# purpose: OWS metadata in the coverage summaries of the capabilities document
# can be disabled here (true/false).
# description: This kind of metadata can be added either manually in ps_extra_metadata table
# or through rasimport `--metadata' argument.
# Due to the fast growth in the capabilities document if each coverage
# includes an ows:Metadata element, here you can tell Petascope to ignore such elements.
# need to adapt: yes
metadata_in_covsummary=false
# parameter: bbox_in_covsummary
# purpose: true/false switch for enabling/disabling the insertion of wcs:BoundingBox elements
# in every wcs:CoverageSummary (capabilities document).
# description: The WCS capabilities document can be used at different levels, depending on the
# specific service. This parameter (along with other *_in_covsummary parameters)
# let you fine-tune the amount of information that Petascope should put inside
# of every wcs:CoverageSummary element. The more the number of coverages offered by
# A service, the more painful can the response time get damaged by having
# this param set to true (an RasQL sdom request is called).
# need to adapt: yes
bbox_in_covsummary=false
# parameter: description_in_covsummary
# purpose: true/false switch for enabling/disabling the insertion of (optionally inserted)
# [ows] Title/Abstract/Keywords in wcs:CoverageSummary elements of the capabilities document.
# description: As for other *_in_covsummary parameters, this one lets you fine-tune
# the coverage summaries in the capabilities document.
# Though they can be useful for having a richer catalog of coverages directly from WCS,
# you can always turn off the insertion of already inserted descriptions
# (petascopedb::ps_descriptions) by setting this to false.
# need to adapt: yes
description_in_covsummary=false
# parameter: petascope_servlet_url
# purpose: service endpoint can be set here.
# description: This property is used by WCS GetCapabilities() response <ows:HTTP> element
# to give the service endpoint.
# Leave it null in case you want Petascope to declare the service URL based on
# the first request it receives after deploy.
# Set this parameter to your public service URL in case you are using a proxy.
# need to adapt: no
petascope_servlet_url=
# parameter: jetty_port
# purpose: Port of embedded petacope, default is 8080
# description: This port must not be used simultaneously by any other Web Application like Tomcat or Apache.
# need to adapt: no
jetty_port=8080
# parameter: jetty_extracted_path
# purpose: Temporary directory of embedded petascope
# description: Jetty will extract war files to this directory before starting up petascope.
# Default is $RMANHOME/share/rasdaman/war/jetty_tmp.
# need to adapt: no
jetty_extracted_path=/opt/rasdaman/share/rasdaman/war
# parameter: java_server
# purpose: Allow user to start Petascope with embedded (Jetty) or external (Tomcat) mode.
# (use ./configure --with-java-server=embedded/external).
# description: When set to external, all settings (jetty_port, jetty_extracted_path, start_embedded_petascope)
# for embedded petascope will be disabled.
# need to adapt: no
java_server=external
# parameter: start_emdedded_petascope
# purpose: Allow user to start embedded petascope after executing start_rasdaman.sh.
# description: User could enable or disable embedded petascope by configuration:"true/false"
# or temporarily enable/disable before starting script start_rasdaman.sh,
# e.g: start_rasdaman.sh --stop-embedded-petascope" or "start_rasdaman --start-embedded-petascope"
# need to adapt: no
start_embedded_petascope=false
# parameter: petascope_admin_user
# purpose: Login account has r/w access to petascope's service introduction information in metadata tables
# of database (currently: PostgreSQL), including:
# ps_description, ps_service_identification, ps_service_provider.
# description: Log in to http://localhost:8080/rasadaman/admin to update these information with user's information.
# Recommendation: establish a dedicated user
# need to adapt: yes
petascope_admin_user=rasdaman
# parameter: petascope_admin_pass
# purpose: password for petascope_admin_user login, as above.
# need to adapt: yes
petascope_admin_pass=5658b94bdc3f46f484c757ebe32b2d20
# parameter: disable_write_operations
# purpose: disables access to WCST (InsertCoverage, UpdateCoverage and DeleteCoverage) operations.
# need to adapt: no
disable_write_operations=true
# parameter: upload directory for RasqlServlet
# purpose: Rasql query to RasqlServlet can upload file with decode() functions, default is /tmp/rasql_servlet_upload.
# need to adapt: no
rasql_servlet_upload_path=/tmp/rasql_servlet_upload
# ---------------------------------------------------------------------
#
# log4j configuration
#
log4j.rootLogger=TRACE, rollingFile, stdout
# Reduce the log information from GRPC, Netty
log4j.logger.io.grpc=WARN
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%6p [%d{HH:mm:ss}] %c{1}@%L: %m%n
log4j.appender.rollingFile=org.apache.log4j.RollingFileAppender
# Please make sure the path specified by log4j.appender.rollingFile.File is a
# location where the system user running Tomcat has write access.
# Otherwise, the secore and petascope logs can only be found in catalina.out
log4j.appender.rollingFile.File=/opt/rasdaman/log/petascope.log
log4j.appender.rollingFile.MaxFileSize=10MB
log4j.appender.rollingFile.MaxBackupIndex=10
log4j.appender.rollingFile.layout=org.apache.log4j.PatternLayout
log4j.appender.rollingFile.layout.ConversionPattern=%6p [%d{HH:mm:ss}] %c{1}@%L: %m%n