编辑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