Add docker-compose example with HAProxy SNI router

Turnkey deployment: HAProxy on :443 peeks at the TLS SNI and routes
Telegram clients to mtg while forwarding everything else (including DPI
probes) to a real Caddy web server with automatic HTTPS.

This is the setup recommended in BEST_PRACTICES.md, packaged so that
operators can clone and run it with minimal configuration.

Refs: #458
This commit is contained in:
dolonet
2026-04-10 10:12:39 +00:00
parent d7249756e2
commit 0c1d001949
6 changed files with 220 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
# Minimal mtg configuration for the SNI-router setup.
#
# 1. Generate a secret: mtg generate-secret --hex example.com
# 2. Paste it below.
# 3. Replace example.com with your actual domain everywhere.
secret = "PASTE_YOUR_SECRET_HERE"
bind-to = "0.0.0.0:3128"
[defense.anti-replay]
enabled = true
max-size = "1mib"
error-rate = 0.001