htsget-config 0.22.1

Used to configure htsget-rs by using a config file or reading environment variables.
Documentation
# An example for a server which uses json path storage.
# Run with `cargo run -p htsget-axum --all-features -- --config htsget-config/docs/examples/json_path_storage.toml`
# in the project directory.

ticket_server.addr = "127.0.0.1:8082"
ticket_server.cors.allow_origins = "All"

data_server = "None"

[[locations]]
regex = ".*"
substitution_string = "$0"

backend.kind = "json_path"
backend.resolve_from = "http://127.0.0.1:8081"
backend.content_path = "$.content"
backend.size_path = "$.size"
backend.response_path = "$.response"
## Or hard-code the response path as a URL
#backend.response_url = "https://example.com"

# Allow only specific headers to reach the backend server and be reflected back to the client.
backend.allow_headers_backend = ["Authorization"]
backend.allow_headers_client = ["Authorization"]

# Optionally denylist headers. These get applied after the allowlist.
#backend.deny_headers_backend = ["X-Internal-*"]
#backend.deny_headers_client = ["X-Internal-*"]

# Set client authentication
#backend.http.key = "key.pem"
#backend.http.cert = "cert.pem"

# Set root certificates
#backend.http.root_store = "root.crt"

# Disable HTTP caching
#backend.http.use_cache = false