嘟嘟社区

有caddy大神嘛?这个配置有毛病吗


看了这个教程,https://forum.tinyserve.com/d/11-naiveproxy-https-switchyomega
但是caddy的配置文档一直报错哈~~
如下
  1. :443, domain.com
  2. tls [email protected]
  3. route {
  4.   forward_proxy {
  5.     basic_auth user pass
  6.     hide_ip
  7.     hide_via
  8.     probe_resistance www.baidu.com
  9.   }
  10.   file_server { root /var/www/html }
  11. }

复制代码

报错如下

  1. OLDPWD=/root
  2. 2022/07/30 14:32:35.827 INFO    using provided configuration    {"config_file": "/etc/caddy/Caddyfile", "config_adapter": ""}
  3. run: adapting config using caddyfile: /etc/caddy/Caddyfile:40 – Error during parsing: Unexpected ‘{}’ at end of line

复制代码

感谢