Configuration reference
You can configure Hive Router using a YAML, JSON, or TOML file (by default, router.config.yaml
).
We’ll use YAML for all examples in this documentation since it’s the most readable.
This page covers all the main configuration options available. Each option links to a detailed page that explains how to use that feature.
cors
: Control cross-origin requests to your API.csrf
: Protect against cross-site request forgery attacks.headers
: Modify HTTP headers between clients and subgraphs.http
: Set the host and port for your router.jwt
: Add JWT-based authentication to secure your endpoint.log
: Control what the router logs and how it formats log messages.override_subgraph_urls
: Route requests to different subgraph URLs dynamically.query_planner
: Add safety limits and debugging for query planning.supergraph
: Tell the router where to find your supergraph schema.traffic_shaping
: Manage connection pooling and request handling to subgraphs.
Last updated on