Highly-opinionated (ex-bullshit-free) MTPROTO proxy for Telegram. If you use v1.0 or upgrade broke you proxy, please read the chapter Version 2
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

mtg-config.toml 511B

1234567891011121314151617
  1. # Minimal mtg configuration for the SNI-router setup.
  2. #
  3. # 1. Generate a secret: mtg generate-secret --hex example.com
  4. # 2. Paste it below.
  5. # 3. Replace example.com with your actual domain everywhere.
  6. secret = "PASTE_YOUR_SECRET_HERE"
  7. bind-to = "0.0.0.0:3128"
  8. # HAProxy in front sends PROXY protocol v2 headers so mtg can see the
  9. # real client IP. Keep this in sync with haproxy.cfg (`send-proxy-v2`).
  10. proxy-protocol-listener = true
  11. [defense.anti-replay]
  12. enabled = true
  13. max-size = "1mib"
  14. error-rate = 0.001