Skip to content

Add support for domain fronting proxy protocol#338

Merged
9seconds merged 1 commit intomasterfrom
proxy-proto-front
Feb 24, 2026
Merged

Add support for domain fronting proxy protocol#338
9seconds merged 1 commit intomasterfrom
proxy-proto-front

Conversation

@9seconds
Copy link
Copy Markdown
Owner

This fixes #335

This PR adds an ability to communicate between upstream and mtg using proxy protocol.

Here is how it can be configured:

# This makes a communication between both fronting website and mtg to use
# proxy protocol.
domain-fronting-proxy-protocol = false

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Feb 24, 2026

Codecov Report

❌ Patch coverage is 68.57143% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 69.16%. Comparing base (58cb0b2) to head (cde313b).

Files with missing lines Patch % Lines
internal/cli/run_proxy.go 0.00% 5 Missing ⚠️
mtglib/conns.go 71.42% 2 Missing and 2 partials ⚠️
mtglib/proxy.go 87.50% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #338      +/-   ##
==========================================
+ Coverage   68.92%   69.16%   +0.24%     
==========================================
  Files          81       81              
  Lines        2716     2734      +18     
==========================================
+ Hits         1872     1891      +19     
+ Misses        741      737       -4     
- Partials      103      106       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@9seconds 9seconds merged commit 2cbee5d into master Feb 24, 2026
8 checks passed
@9seconds 9seconds deleted the proxy-proto-front branch February 24, 2026 15:53
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.

Proxy protocol для domain-fronting

2 participants