FILE / ScuroNeko/mtg

contrib/sni-router/mtg-config.toml

Исходный файл и его история в репозитории.
FILE 0c1d0019498017a87f2a64548c66197677f03c4e
Files
mtg/contrib/sni-router/mtg-config.toml
T
dolonet 0c1d001949 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
2026-04-10 10:12:39 +00:00

14 lines
336 B
TOML

# 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