Configuration#
Datacube Explorer can be configured either from a file or environment variables.
Configuring from Python Files#
On startup, Datacube Explorer looks for and loads the file named
settings.env.py, a Python file with options as
top level global variables.
Configuring from Environment Variables#
Environment variables can be set in the shell before starting the server:
$ export FLASK_ENV=development
$ export FLASK_APP=cubedash
$ export CUBEDASH_DEFAULT_TIMEZONE=Australia/Darwin
$ cubedash-run
* Running on http://localhost:8080/ (Press CTRL+C to quit)
Server Settings#
The following configuration settings are provided by Datacube Explorer:
- CACHE_TYPE#
Enable Flask-Cache settings.
- Default:
NullCache
- CUBEDASH_CORS#
Enable Cross Origin Resource Sharing (CORS) for
stacandapi.- Default:
True
- CUBEDASH_DATA_S3_REGION#
Todo
Describe the S3 Region Option
- Default:
ap-southeast-2
- CUBEDASH_DEFAULT_API_LIMIT#
Query limit for search datasets using Explorer’s spatial table
- Default:
500
- CUBEDASH_DEFAULT_ARRIVALS_DAY_COUNT#
In a time window between (today, today - number of days) show on Audit arrival page
- Default:
14
- CUBEDASH_DEFAULT_GROUP_NAME#
Group name for default group and products not matching regex.
- Default:
Other Products
- CUBEDASH_DEFAULT_LICENSE#
Todo
Describe the default license option.
- Default:
None
- CUBEDASH_DEFAULT_TIMEZONE#
default grouping timezone for display datasets time in local timezone
- Default:
Australia/Darwin
- CUBEDASH_HARD_SEARCH_LIMIT#
limit for number of SQL search for datasets query.
- Default:
150
- CUBEDASH_HIDE_PRODUCTS_BY_NAME_LIST#
List containing product names to hide from product menu and audit pages.
- Default:
[]
- CUBEDASH_PRODUCT_GROUP_BY_FIELD#
Which Product Field will be used for grouping in the UI.
- Default:
product_type
- CUBEDASH_PRODUCT_GROUP_BY_REGEX#
Tuple containing regexes for product name matching and group name
- Default:
None
Example#( (r'^usgs_','USGS products'), (r'_albers$','C2 Albers products'), (r'level1','Level 1 products'), )
- CUBEDASH_PRODUCT_GROUP_SIZE#
TODO:
- Default:
5
- CUBEDASH_PROVENANCE_DISPLAY_LIMIT#
Limit for displaying source datasets and derived datasets of a dataset
- Default:
25
- CUBEDASH_SHOW_PERF_TIMES#
Whether to add server timings to http headers or not.
- Default:
False
- CUBEDASH_SISTER_SITES#
Tuple containing related explorer instance name and domain
- Default:
None
Example#( ('Production - ODC', 'http://prod.odc.example'), ('Production - NCI', 'http://nci.odc.example'), )
- CUBEDASH_THEME#
Theme name to apply to explorer instance, options are
odc,dea,deafrica. Those can be viewed in folder undercubedash > templates >> themes- Default:
odc
- SHOW_DATA_LOCATION#
S3 buckets for which to return a browseable bucket link instead of the plain S3 link
- Default:
{}- Type:
Mapping[str, str]`
Example:
{ 'dea-public-data': 'data.dea.ga.gov.au'}
- default_map_center#
Leaflet map https://leafletjs.com/reference.html#map-center, variates by explorer theme.
- Default:
[0.0, 60.0]- Type:
tuple[float, float]
- default_map_zoom#
Leaflet Map default zoom. See the LeafletJS docs.`
- Default:
3
STAC API Configuration#
- STAC_ABSOLUTE_HREFS#
TODO:
- Default:
True
- STAC_DEFAULT_FULL_ITEM_INFORMATION#
Request the full Item information. This forces us to go to the ODC dataset table for every record, which can be extremely slow.
- Default:
True
- STAC_ENDPOINT_DESCRIPTION#
description shown on
/stacpage.- Default:
Configure stac endpoint information in your Explorer `settings.env.py` file
- STAC_ENDPOINT_ID#
id shown on
/stacpage.- Default:
odc-explorer
- STAC_ENDPOINT_TITLE#
title shown on
/stacpage.- Default:
Default Datacube Explorer instance
- STAC_DEFAULT_PAGE_SIZE#
Default number of results returned in a STAC response.
- Default:
20
- STAC_PAGE_SIZE_LIMIT#
The maximum number of STAC results in a response.
- Default:
1000