Skip to content

feat: add domain-specific RPC method mappings - #19

Merged
pythonberg1997 merged 1 commit into
developfrom
routing
Nov 10, 2025
Merged

feat: add domain-specific RPC method mappings#19
pythonberg1997 merged 1 commit into
developfrom
routing

Conversation

@pythonberg1997

Copy link
Copy Markdown
Collaborator

Summary

This PR introduces domain-based routing capabilities, allowing different domains to use different RPC method mappings to backend groups.

Changes

  • Added domain_rpc_method_mappings configuration option to route requests to different backend groups based on the domain name from X-Forwarded-Host header
  • Extended Config struct with DomainRPCMethodMappings field

Config example

# Default mappings (fallback)
[rpc_method_mappings]
eth_blockNumber = "query"
eth_call = "query"

# Domain-specific mappings
[domain_rpc_method_mappings."domain1.example.com"]
eth_blockNumber = "special_backend"
eth_call = "special_backend"

@pythonberg1997
pythonberg1997 merged commit 07913db into develop Nov 10, 2025
4 of 5 checks passed
@pythonberg1997
pythonberg1997 deleted the routing branch November 10, 2025 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants