mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 16:24:03 +03:00
FILE / ScuroNeko/mtg
contrib/sni-router/mtg-config.toml
Исходный файл и его история в репозитории.
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
14 lines
336 B
TOML
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
|