The rasdaman-geo Web frontend (petascope) can be configured via changing
settings in /opt/rasdaman/etc/petascope.properties
.
For changes to take effect, system Tomcat (if deployment is external
)
or rasdaman (if deployment is embedded
) needs to be restarted after
editing this file.
Database¶
spring.datasource.url
set the connectivity string to the database administered by rasdaman-geo- Default:
jdbc:postgresql://localhost:5432/petascopedb
- Need to change: NO when PostgreSQL used, YES when other DMBS
(e.g.
H2
database) used
- Default:
spring.datasource.username
set the username for the above database- Default:
petauser
- Need to change: YES when changed in the above database
- Default:
spring.datasource.password
set the password for the above database. Recommendation: change the password after rasdaman installation.- Default:
petapasswd
- Need to change: YES when changed in the above database
- Default:
spring.datasource.jdbc_jar_path
set the path to JDBC jar file for Spring datasource. If left empty, the default PostgreSQL JDBC driver will be used. To use a different DBMS (e.g. H2), please download the corresponding JDBC driver, and set the path to it.- Default:
- Need to change: YES when diferent DMBS than PostgreSQL used for Spring datasource
metadata_url
only used for database migration. Set the connectivity string to the database administered by rasdaman-geo. This configuration is used as source database (whilespring.datasource.url
is target database) to either migratepetascopedb
from one rasdaman version to a newer one (only used forv9.4
tov9.5
), or in same DBMS or to different DBMS (e.g.postgres
toH2
) when executingmigrate_petascopedb.sh
.- Default:
jdbc:postgresql://localhost:5432/petascopedb
- Need to change: YES when migrating to a different DMBS
- Default:
metadata_user
set the username for the above database- Default:
petauser
- Need to change: YES when changed in the above database
- Default:
metadata_pass
set the password for the above database- Default:
petapasswd
- Need to change: YES when changed in the above database
- Default:
metadata_jdbc_jar_path
set the path to JDBC jar file for Spring datasource. If left empty, the default PostgreSQL JDBC driver will be used. To use a different DBMS (e.g. H2), please download the corresponding JDBC driver, and set the path to it.- Default:
- Need to change: YES when diferent DMBS than PostgreSQL used for Spring datasource
General¶
server.contextPath
set the prefix for controller in web application URL routing, e.g. the/rasdaman
inhttp://localhost:8080/rasdaman/ows
.Note
Work only when running rasdaman-geo in
embedded
mode.- Default:
/rasdaman
- Need to change: NO
- Default:
secore_urls
set SECORE endpoints to be used by rasdaman-geo. Multiple endpoints (for fail safety) can be specified as comma-separated list, attempted in order as listed. By default,internal
indicates that rasdaman-geo should use its ownSECORE
.- Default:
internal
- Need to change: NO
- Default:
xml_validation
if set totrue
, WCSPOST/SOAP
XML requests will be validated againstOGC WCS 2.0.1
schema definitions; when starting Petascope it will take around 1-2 minutes to load the schemas from the OGC server. Set tofalse
by default;Note
Passing the OGC CITE tests also requires it to be set to
false
.- Default:
false
- Need to change: NO
- Default:
ogc_cite_output_optimization
optimize responses in order to pass a couple of broken OGC CITE test cases. Indentation ofWCS GetCoverage
andWCS DescribeCoverage
results will be trimmed.Note
Only set to
true
when executing OGC CITE tests.- Default:
false
- Need to change: NO
- Default:
petascope_servlet_url
set the service endpoint in<ows:HTTP>
element ofWCS GetCapabilities
. Change to your public service URL if rasdaman-geo runs behind a proxy; if not set then it will be automatically derived, usually tohttp://localhost:8080/rasdaman/ows
.- Default:
- Need to change: YES when rasdaman-geo runs behind a proxy
allow_write_requests_from
accept write requests such asWCS-T
(InsertCoverage
,UpdateCoverage
andDeleteCoverage
) only from the comma-separated list of IP addresses. By default127.0.0.1
will allow locally generated requests, usually needed to import data withwcst_import.sh
. Setting to empty will block all requests, while*
will allow any IP address.Note
This setting (i.e. the origin IP) is ignored when a request contains basic auth credentials for a valid rasdaman user with
RW
rights in the HTTP Authorization header.- Default:
127.0.0.1
- Need to change: YES when more IP addresses are allowed to send write requests
- Default:
max_wms_cache_size
set the maximum amount of memory (in bytes) to use for cachingWMS GetMap
requests. This setting speeds up repeatingWMS
operaions over similar area/zoom level. Recommendation: consider increasing the parameter if the system has more RAM, but make sure to correspondingly update the-Xmx
option for Tomcat as well. The cache evicts last recently inserted data when it reaches the maximum limit specified here.- Default:
100000000
(100 MB) - Need to change: NO
- Default:
uploaded_files_dir_tmp
set server directory where files uploaded to rasdaman-geo by a request will be temporarily stored.- Default:
/tmp/rasdaman_petascope/upload
- Need to change: NO
- Default:
full_stacktraces
print only stacktraces generated by rasdaman (false
), or full stacktraces including all external libraries (true
). Recommendation: set tofalse
for shorter exception stack traces inpetascope.log
.- Default:
false
- Need to change: NO
- Default:
Deployment¶
java_server
specify how is petascope deployed:1. embedded
start standalone with embedded Tomcat, listening onserver.port
setting as configured below.2. external
-rasdaman.war
is deployed inwebapps
dir of external Tomcat. Recommendation:embedded
, as there is no dependency on external Tomcat server,petascope.log
can be found in/opt/rasdaman/log
, andstart/stop
of petascope is in sync withstarting/stopping
rasdaman service.- Default:
embedded
- Need to change: YES when deploying rasdaman-geo to external tomcat
- Default:
server.port
set port on whichembedded
petascope (java_server=embedded
above) will listen when rasdaman starts. This setting has no effect whenjava_server=external
.- Default:
8080
- Need to change: YES when port
8080
is occupied by another process (e.g. external Tomcat)
- Default:
Rasdaman¶
rasdaman_url
set URL of the rasdaman database to which rasdaman connects. Normally rasdaman is installed on the same machine, so the bellow needs no changing (unless the defaultrasmgr
port7001
has changed).- Default:
http://localhost:7001
- Need to change: YES when changed in rasdaman
- Default:
rasdaman_database
set the name of the rasdaman database (configured in/opt/rasdaman/etc/rasmgr.conf
). Recommendation: use rasdaman standard name,RASBASE
- Default:
RASBASE
- Need to change: YES when changed in rasdaman
- Default:
rasdaman_user
this user is used to map read OGC requests to read-only rasql queries. Recommendation: specify a user with read-only access rights in rasdaman.- Default:
rasguest
- Need to change: YES when changed in rasdaman
- Default:
rasdaman_pass
set the password for the rasdaman user above. Recommendation: change the default password forrasguest
user in rasdaman and update the value here.- Default:
rasguest
- Need to change: YES when changed in rasdaman
- Default:
rasdaman_admin_user
this user is used to map updating OGC requests (e.g. during data import, or deleting coverages) to updating rasql queries. Additionally, these credentials are used internally for various tasks which require admin access rights in rasdaman.Generally, this user should be granted the
admin
rasdaman role.- Default:
rasadmin
- Need to change: YES when changed in rasdaman
- Default:
rasdaman_admin_pass
set the password for the rasdaman admin user above. Recommendation: change the default password forrasadmin
user in rasdaman and update the value here.- Default:
rasadmin
- Need to change: YES when changed in rasdaman
- Default:
rasdaman_retry_attempts
set the number of re-connect attempts to a rasdaman server in case a connection fails.- Default:
5
- Need to change: NO
- Default:
rasdaman_retry_timeout
set the wait time in seconds between re-connect attempts to a rasdaman server.- Default:
10
(seconds) - Need to change: NO
- Default:
rasdaman_bin_path
set thet path to rasdamanbin
directory.- Default:
/opt/rasdaman/bin
- Need to change: YES when changed in rasdaman
- Default:
HTTPS¶
Used only for embedded
rasdaman-geo deployment.
security.require-ssl
allowembedded
petascope to work with HTTPS from its endpoint- Default:
false
- Need to change: NO
- Default:
INSPIRE¶
inspire_common_url
set the URL to an external catalog service for theINSPIRE
standard, to be provided by the user. If not set then it will be automatically derived from thepetascope_servlet_url
setting.- Default:
- Need to change: NO
Demo Web¶
static_html_dir_path
Absolute path to a directory containing demo web pages (html/css/javascript
). If set, rasdaman-geo will serve theindex.html
in this directory at its endpoint, e.g.http://localhost:8080/rasdaman/
. Changes of files in this directory do not require a rasdaman-geo restart. The system user running Tomcat (ifjava_server=external
) or rasdaman (ifjava_server=embedded
) must have read permission on this directory.- Default:
- Need to change: YES when demo web pages required under radaman-geo’s endpoint
Logging¶
rasdaman-geo uses log4j
library version 1.2.17
provided by Spring Boot
version 1.5.2
to log information/error in petascope.log
file.
See log4j 1.x document for more details.
- Configuration for petascope logging; by default only level
INFO
or higher is logged, to bothfile
andstdout
. The valid incremental logging levels areTRACE
,DEBUG
,INFO
,WARN
,ERROR
andFATAL
. - Configuration for reducing logs from external libraries: Spring, Hibernate, Liquibase, GRPC and Netty.
- Configure
file
logging. The paths forfile
logging specified below should be write-accessible by the system user running Tomcat. If running embedded Tomcat, then the files should be write accessible by the system user running rasdaman. - Select one strategy for rolling files and comment out the other. Default it is rolling files by time interval.