Skip to content

Commit

Permalink
simplify defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
mishaschwartz committed Oct 16, 2024
1 parent 10e6919 commit 51f66b3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
7 changes: 6 additions & 1 deletion birdhouse/components/thredds/catalog.xml.template
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@
</metadata>

<filter>
${THREDDS_DEFAULT_FILE_FILTERS}
<include wildcard="*.nc" />
<include wildcard="*.ncml" />
<include wildcard="*.txt" />
<include wildcard="*.md" />
<include wildcard="*.rst" />
<include wildcard="*.csv" />
${THREDDS_SERVICE_DATA_EXTRA_FILE_FILTERS}
</filter>

Expand Down
17 changes: 6 additions & 11 deletions birdhouse/components/thredds/default.env
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,6 @@ export THREDDS_SERVICE_DATA_URL_PATH='birdhouse'
export THREDDS_MAGPIE_EXTRA_METADATA_PREFIXES='".+\\.txt", ".+\\.md", ".+\\.rst"'
export THREDDS_MAGPIE_EXTRA_DATA_PREFIXES=''

export THREDDS_DEFAULT_FILE_FILTERS='
<include wildcard="*.nc" />
<include wildcard="*.ncml" />
<include wildcard="*.txt" />
<include wildcard="*.md" />
<include wildcard="*.rst" />
<include wildcard="*.csv" />
'

export THREDDS_SERVICE_DATA_EXTRA_FILE_FILTERS=''

export THREDDS_DATASET_DATASETSCAN_BODY="
Expand All @@ -37,7 +28,12 @@ export THREDDS_DATASET_DATASETSCAN_BODY="
</metadata>

<filter>
${THREDDS_DEFAULT_FILE_FILTERS}
<include wildcard="*.nc" />
<include wildcard="*.ncml" />
<include wildcard="*.txt" />
<include wildcard="*.md" />
<include wildcard="*.rst" />
<include wildcard="*.csv" />
</filter>
"

Expand All @@ -51,7 +47,6 @@ VARS="
\$THREDDS_DATASET_URL_PATH
\$THREDDS_DATASET_LOCATION_ON_CONTAINER
\$THREDDS_DATASET_DATASETSCAN_BODY
\$THREDDS_DEFAULT_FILE_FILTERS
"

OPTIONAL_VARS="
Expand Down
3 changes: 1 addition & 2 deletions birdhouse/env.local.example
Original file line number Diff line number Diff line change
Expand Up @@ -499,15 +499,14 @@ export THREDDS_ADDITIONAL_CATALOG=''
# THREDDS_ADDITIONAL_CATALOG variable).
# By default, the main dataset will only serve files with the following extensions: .nc .ncml .txt .md .rst .csv and will use
# the THREDDS service named "all" (see components/thredds/catalog.xml.template). However this can be customized if desired.
# See the example below which would change the configuration to also serve .h5 and .json files and exclude .md files.
# See the example below which would change the configuration to serve .h5, .md, and .json files.
# See the THREDDS documentation for the <datasetScan> element for all configuration options.
#export THREDDS_DATASET_DATASETSCAN_BODY="
# <metadata inherited='true'>
# <serviceName>all</serviceName>
# </metadata>
#
# <filter>
# ${THREDDS_DEFAULT_FILE_FILTERS}
# <include wildcard='*.h5' />
# <include wildcard='*.json' />
# <exclude wildcard='*.md' />
Expand Down

0 comments on commit 51f66b3

Please sign in to comment.