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
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Caddyfile 642B

12345678910111213141516171819
  1. {
  2. # Caddy listens on 8443 behind HAProxy, which passes raw TLS through.
  3. # Caddy terminates TLS itself and auto-obtains a Let's Encrypt certificate.
  4. #
  5. # If your domain's DNS already points to this server, ACME HTTP-01 challenge
  6. # works through the HAProxy http frontend (:80 → redirect). For DNS-01
  7. # or other ACME methods, see https://caddyserver.com/docs/automatic-https
  8. }
  9. {$DOMAIN}:8443 {
  10. tls {
  11. # Use the ACME HTTP-01 challenge on port 80.
  12. # HAProxy forwards :80 as HTTP, so Caddy can answer the challenge
  13. # if you add an acl exception in haproxy.cfg (see README), or use
  14. # DNS-01 instead.
  15. }
  16. root * /srv
  17. file_server
  18. }