Skip to content

Commit

Permalink
Merge pull request #273 from umccr/fix/deploy-c4gh-settings
Browse files Browse the repository at this point in the history
fix(deploy): allow fetching C4GH and regular files
  • Loading branch information
mmalenic authored Oct 20, 2024
2 parents 5bd8036 + a5c4105 commit 18f33a8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions deploy/config/example_deploy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,19 @@ contact_url = "https://umccr.org/"
documentation_url = "https://github.com/umccr/htsget-rs"
environment = "dev"

# C4GH prefix indicates Crypt4GH files.
[[resolvers]]
regex = '^(?P<bucket>.*?)/(?P<key>.*)$'
regex = '^(?P<bucket>.*?)/(?P<key>c4gh/.*)$'
substitution_string = '$key'
storage.backend = 'S3'

[resolvers.storage.keys]
location = "SecretsManager"
private_key = "htsget-rs/c4gh-private-key" # pragma: allowlist secret
recipient_public_key = "htsget-rs/c4gh-recipient-public-key"
recipient_public_key = "htsget-rs/c4gh-recipient-public-key"

# Everything else is a regular file.
[[resolvers]]
regex = '^(?P<bucket>.*?)/(?P<key>.*)$'
substitution_string = '$key'
storage.backend = 'S3'

0 comments on commit 18f33a8

Please sign in to comment.