mokoの小站 - bot
type: channel
link: https://www.mokoc.net/tag/bot/
items: Caddy反代telegram bot api

Caddy反代telegram bot api
type: item
date: 2025-04-15T13:06:00+08:00
description: 编辑caddy配置文件，并写入以下配置配置如下domain { handle /bot* { reverse_proxy https://api.telegram.org { header_up Host api.telegram.org transport http { tls tls_insecure_skip_verify } } } handle / { respond "Telegram Bot API Proxy" 200 } log { output file /var/log/caddy/tgapi.log format console } }caddy会自动处理证书，并开启https