When the secret's domain points at this server (the recommended deployment), mtg's default fronting behavior dials that domain on :443 and the connection lands on HAProxy. HAProxy sees the SNI matching the secret and routes back to mtg, looping until something gives. Pin Caddy's container address via a static `sni` network and point mtg's `[domain-fronting]` at it directly with `proxy-protocol = true`, matching Caddy's :8443 PROXY listener wrapper. mtg's `domain-fronting.ip` only accepts a literal IP (not a hostname), so the network needs a fixed subnet. README documents the loop, the fix, and the requirement to keep the pinned IP in sync between docker-compose.yml and mtg-config.toml. Reported by @gaudima in #462.pull/478/head
|
|
||
| 56 |
|
56 |
|
| 57 |
|
57 |
|
| 58 |
|
58 |
|
|
59 |
|
|
|
60 |
|
|
|
61 |
|
|
|
62 |
|
|
|
63 |
|
|
|
64 |
|
|
|
65 |
|
|
|
66 |
|
|
|
67 |
|
|
|
68 |
|
|
|
69 |
|
|
|
70 |
|
|
|
71 |
|
|
|
72 |
|
|
|
73 |
|
|
|
74 |
|
|
|
75 |
|
|
|
76 |
|
|
|
77 |
|
|
|
78 |
|
|
|
79 |
|
|
|
80 |
|
|
|
81 |
|
|
|
82 |
|
|
|
83 |
|
|
|
84 |
|
|
|
85 |
|
|
|
86 |
|
|
|
87 |
|
|
| 59 |
|
88 |
|
| 60 |
|
89 |
|
| 61 |
|
90 |
|
|
|
||
| 30 |
|
30 |
|
| 31 |
|
31 |
|
| 32 |
|
32 |
|
|
33 |
|
|
|
34 |
|
|
| 33 |
|
35 |
|
| 34 |
|
36 |
|
| 35 |
|
37 |
|
|
|
||
| 40 |
|
42 |
|
| 41 |
|
43 |
|
| 42 |
|
44 |
|
|
45 |
|
|
|
46 |
|
|
| 43 |
|
47 |
|
| 44 |
|
48 |
|
| 45 |
|
49 |
|
|
|
||
| 53 |
|
57 |
|
| 54 |
|
58 |
|
| 55 |
|
59 |
|
|
60 |
|
|
|
61 |
|
|
|
62 |
|
|
|
63 |
|
|
|
64 |
|
|
|
65 |
|
|
| 56 |
|
66 |
|
| 57 |
|
67 |
|
| 58 |
|
68 |
|
|
69 |
|
|
|
70 |
|
|
|
71 |
|
|
|
72 |
|
|
|
73 |
|
|
|
74 |
|
|
|
75 |
|
|
|
||
| 11 |
|
11 |
|
| 12 |
|
12 |
|
| 13 |
|
13 |
|
|
14 |
|
|
|
15 |
|
|
|
16 |
|
|
|
17 |
|
|
|
18 |
|
|
|
19 |
|
|
|
20 |
|
|
|
21 |
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
|
|
|
25 |
|
|
|
26 |
|
|
| 14 |
|
27 |
|
| 15 |
|
28 |
|
| 16 |
|
29 |
|