Skip to content

Conversation

@steebchen
Copy link
Member

Summary

  • Adds --http.hostname_header CLI flag to torii
  • When enabled, adds X-Torii-Host response header containing the system hostname to every HTTP response
  • Useful for identifying which server instance handled a request in load-balanced/multi-instance deployments

Test plan

  • Run torii with --http.hostname_header flag
  • Verify responses include X-Torii-Host header with correct hostname
  • Verify header is NOT present when flag is not set

🤖 Generated with Claude Code

steebchen and others added 4 commits January 27, 2026 15:40
Copy link
Collaborator

@Larkooo Larkooo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to have it as a flag imo

Hostname is resolved once at startup and added to every response.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@Larkooo Larkooo enabled auto-merge (squash) January 27, 2026 18:29
@steebchen steebchen changed the title feat(server): add --hostname-header flag for X-Torii-Host response header feat(server): add X-Torii-Host response header Jan 27, 2026
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.

3 participants